I am trying to add the Universal Links and Fonts entitlement to my project so I created a Entitlements file like below after updating the identifier for the app. Next, I regenerated my certificates and provision profiles. If I now check the provision file for iOS Development in Quickview the entitlements are listed.
I saved the files in Resources/[BinaryName].entitlements
and it’s marked as a AppResource
.
<?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>application-identifier</key>
<string>2943B48G98.uk.xxx.apps.BinaryName</string>
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:pay.tapico.cloud</string>
<string>webcredentials:example.com</string>
</array>
<key>com.apple.developer.team-identifier</key>
<string>2943B48G98</string>
<key>com.apple.developer.user-fonts</key>
<array>
<string>app-usage</string>
<string>system-installation</string>
</array>
<key>get-task-allow</key>
<true/>
<key>keychain-access-groups</key>
<array>
<string>2943B48G98.*</string>
<string>com.apple.token</string>
</array>
</dict>
</plist>
Only when I try to run the application on the phone it’s failing when it tries to deploy it to the iPhone with the error:
2021-04-28 17:47:47.167 ios-deploy[25641:333342] [ !! ] Error 0xe8008016: The executable was signed with invalid entitlements. AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0)