File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -354,15 +354,22 @@ build_for_arch() {
354354
355355 mkdir -p build
356356
357- # Create archive entitlements without iCloud ( Developer ID profiles don't
358- # include iCloud capability) . Full entitlements are used for final codesign.
357+ # Create minimal entitlements for archive — Developer ID profiles don't
358+ # support iCloud/keychain-access-groups . Full entitlements are used for final codesign.
359359 local archive_entitlements=" build/archive-entitlements.plist"
360- if [ -f " $ENTITLEMENTS " ]; then
361- echo " 🔑 Preparing CI entitlements (stripping iCloud for archive)..."
362- cp " $ENTITLEMENTS " " $archive_entitlements "
363- /usr/libexec/PlistBuddy -c " Delete :com.apple.developer.icloud-container-identifiers" " $archive_entitlements " 2> /dev/null || true
364- /usr/libexec/PlistBuddy -c " Delete :com.apple.developer.icloud-services" " $archive_entitlements " 2> /dev/null || true
365- fi
360+ echo " 🔑 Preparing minimal CI entitlements for archive..."
361+ cat > " $archive_entitlements " << ENTPLIST
362+ <?xml version="1.0" encoding="UTF-8"?>
363+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
364+ <plist version="1.0">
365+ <dict>
366+ <key>com.apple.security.app-sandbox</key>
367+ <false/>
368+ <key>com.apple.security.cs.disable-library-validation</key>
369+ <true/>
370+ </dict>
371+ </plist>
372+ ENTPLIST
366373
367374 # Generate ExportOptions.plist
368375 local export_options=" build/ExportOptions-${arch} .plist"
You can’t perform that action at this time.
0 commit comments