Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automated conversion of aps-environment from development to production in Xamarin

In my Xamarin iOS project, Entitlements.plist has aps-environment set to development, for dev testing purposes. I'm using the Visual Studio Team Services Extension for the App Store to automate publishing builds to TestFlight. However, when it uses fastlane pilot to upload the app, I get this error:

ERROR ITMS-90046: "Invalid Code Signing Entitlements. Your application bundle's signature contains code signing entitlements that are not supported on iOS. Specifically, value 'development' for key 'aps-environment' in 'project' is not supported.

It looks like the environment should get switched to production when running the continuous integration build. How do I automate this?

like image 474
Edward Brey Avatar asked Aug 29 '17 14:08

Edward Brey


Video Answer


2 Answers

Remove Entitlements.plist, and add Entitlements.developer.plist and Entitlements.production.plist. In iOS Bundle Signing, enter the corresponding plist file for Customer Entitlements based on the build configuration.

like image 172
Edward Brey Avatar answered Nov 01 '22 12:11

Edward Brey


I have just removed aps-environment from Entitlements.plist without adding new files and it worked for me

like image 35
S. Koshelnyk Avatar answered Nov 01 '22 14:11

S. Koshelnyk