在 Xamarin 中将 aps 环境从开发自动转换为生产 [英] Automated conversion of aps-environment from development to production in Xamarin
问题描述
在我的 Xamarin iOS 项目中,Entitlements.plist 将 aps-environment
设置为 development
,用于开发测试目的.我正在使用 适用于 App Store 的 Visual Studio Team Services 扩展 自动将构建发布到 TestFlight.但是,当它使用 fastlanepilot 上传应用程序时,出现此错误:
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:
错误 ITMS-90046:无效的代码签名权利.您的应用程序包的签名包含 iOS 不支持的代码签名权利.具体来说,'project 中的键 'aps-environment' 的值是 'development'em>' 不受支持.
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.
在运行持续集成构建时,看起来环境应该切换到 production
.我如何自动执行此操作?
It looks like the environment should get switched to production
when running the continuous integration build. How do I automate this?
推荐答案
移除 Entitlements.plist
,并添加 Entitlements.developer.plist
和 Entitlements.production.plist
.在 iOS Bundle Signing 中,根据构建配置为 Customer Entitlements 输入相应的 plist 文件.
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.
这篇关于在 Xamarin 中将 aps 环境从开发自动转换为生产的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!