问题描述
原来iOS持续集成环境使用的是Intel芯片,现由于性能及OS升级原因,重新购买了一个Apple M2芯片的集成环境,导致原来在执行xcode archive的时候,总是提示:
error:Provisioning Profile XXX doesn’t include current selected device “xxx”(identifier xxxxx).(in target xxxx from project xxxxx)
问题解决
一番折腾后,发现需要在构建命令中增加如下选项才可以:
“-destination 'generic/platform=iOS'”
完整的命令如下:
xcodebuild -workspace xxx.xcworkspace -scheme xxx -configuration Release archive 'CODE_SIGN_IDENTITY=xxxxxxx' PROVISIONING_PROFILE_SPECIFIER=xxxProfile DEVELOP

文章讲述了将iOS持续集成环境从Intel芯片升级至AppleM2时遇到的ProvisioningProfile错误,解决方法是在xcodebuild命令中添加generic/platform=iOS选项。
最低0.47元/天 解锁文章
1582

被折叠的 条评论
为什么被折叠?



