Sunday, March 5, 2017

Invalid Code Signing Entitlements

While working with Xamarin.iOS project I had faced a deployment problem to iTunes Connect using Application Loader and got the error like below:

Invalid Code Signing Entitlements. Your application bundle's singature contains code signing entilements that are not supported on iOS. Specifially, value 'Development' for key 'com.apple.developer.icloud-container-environment' in 'Payload/YourProject.app

and to overcome such error open file Entitlements.plist from Xamarin.iOS project using Json Editor and add these two lines below:

<key>com.apple.developer.icloud-container-environment</key>
<string>Production</string>

so the complete code example could be:

<?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>com.apple.developer.icloud-container-environment</key>
 <string>Production</string>
</dict>
</plist>

No comments:

Post a Comment