在Xamarin中将aps环境从开发自动转换为生产 [英] Automated conversion of aps-environment from development to production in Xamarin

查看:70
本文介绍了在Xamarin中将aps环境从开发自动转换为生产的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Xamarin iOS项目中,Entitlements.plist已将aps-environment设置为development,用于开发测试.我正在使用用于App Store的Visual Studio Team Services扩展自动将内部版本发布到TestFlight.但是,当它使用fastlane pilot上载应用程序时,出现此错误:

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 '不支持.

运行连续集成构建时,似乎环境应该切换到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.plistEntitlements.production.plist.在"iOS捆绑包设置"中,根据构建配置为客户权利输入相应的plist文件.

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.

这篇关于在Xamarin中将aps环境从开发自动转换为生产的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆