Why does Xcode 12.5 `xcodebuild -archive` complain about a missing appclip entitlement in an app that does not have an AppClip?
This was solved by downloading a newly generated provisioning profile from Apple, which was identical to the original apart from the addition of an empty appclip-app-identifiers
entry in the entitlements section.
Provisioning doesn't match the entitlements file's value for the com.apple.developer.parent-application-identifiers entitlement
There are two values that need to match up. First, locate the provisioning profile Xcode is using for your App Clip (they're in ~/Library/MobileDevice/Provisioning Profiles
) and inspect it by highlighting the file and pressing space. The parent ID value in there:
..has to match the same field in your .entitlements
file in your App Clip target in Xcode. If it doesn't you can just edit the entitlement manually.
Sandbox entitlement to script iTunes via NSAppleScript
After contacting the Developer Technical Support of Apple, I was able to solve this problem, which is actually 2 problems in one.
First, the entitlements need to have the bundle identifiers properly cased. For iTunes, the entitlements must be like this (note the capital T
in iTunes):
<key>com.apple.security.scripting-targets</key>
<dict>
<key>com.apple.iTunes</key>
<array>
<string>com.apple.iTunes.library.read-write</string>
</array>
</dict>
Then, the privilege violation will occur unless the AppleScript code includes of source 1
at the end like this :
tell application "iTunes" to add (POSIX file "your/path/to/mp3.mp3") to library playlist 1 of source 1
There you go!
Related Topics
How to Add a Link for a Rate Button with Swift
How to Change the Font Size of a Uilabel in Swift
Share Attachment from Mail App with Share Extension in iOS
Swift Select All Photos from Specific Photos Album
How to Hide API Keys in Github for iOS (Swift) Projects
Why am I Getting Com.Facebook.Sdk.Login Error 308
Swift Core Data Sync with Web Server
Reload View When @Published Is Changed
Create Navbar Programmatically with Button and Title Swift
How to Center a Label Horizontally for All iOS Devices in Swift
How to Call Rating View from JSON and Show the Rating in My Table View
How to Add a Ibaction to a Button Programmatically in Swift 4
How to Check If Device Orientation Is Landscape Left or Right in Swift
How to Update Constraints Programmatically
Timer Label Not Updated After Switching Views (Swift)
Xcode 6 Project Crashing After Segue on iOS 7.1
How to Use Type Erasure with a Protocol Using Associated Type