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

落爺英雄遲暮 提交于 2020-08-06 08:08:26

问题


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?


回答1:


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




回答2:


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



来源:https://stackoverflow.com/questions/45941192/automated-conversion-of-aps-environment-from-development-to-production-in-xamari

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!