Skip to content

Instantly share code, notes, and snippets.

PLISTBUDDY="/usr/libexec/PlistBuddy"
ENT_PLIST="${TMPDIR}/Debug.entitlements"
# 1) Create the file if it doesn't exist (as a valid plist with an empty dict)
if [ ! -f "$ENT_PLIST" ]; then
/usr/bin/plutil -create xml1 "$ENT_PLIST"
# "$PLISTBUDDY" -c "Add : dict" "$ENT_PLIST" 2>/dev/null || true
fi
# 2) Update if it exists; otherwise add it
//
// PhotoEditView+CropOverlay.swift
// FaceYoga
//
// Created by Huanan on 2025/8/19.
//
import MKKit13
// MARK: - CropOverlayView.CropRectangeLayer