I am having this kind of problem due to recently introduced automatic build script. The script was the code assignment of the resulting application package manually, and it turned out that I needed to explicitly reference the rights file at the stage of code creation:
/ usr / bin / codesign --force --sign "$ CERTIFICATE" - identifier "$ BUNDLE_ID" - rights Entitlements.plist Payload /${BUNDLE_NAMEβΊ.app
The Entitlements.plist file is pretty standard:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>get-task-allow</key> <false/> <key>application-identifier</key> <string>fully-qualified bundleid</string> <key>keychain-access-groups</key> <array> <string>fully-qualified bundleid</string> </array> </dict> </plist>
source share