将学习变成乐趣,一直在路上
每天1990

导航

 
在M1芯片上执行xcodebuild  archive命令,提示下面的错误:
 
Code Signing Error: Provisioning profile "xxxx" doesn't include the currently selected device "appqa的Mac mini" (identifier xxxx).
后面的device是本机M1电脑,理论上构建只给手机安装的ipa,是不应该提示这个的
 
兼容方法:
在xcodebuild命令后面增加参数 -destination 'generic/platform=iOS'
posted on 2021-12-07 15:01  每天1990  阅读(426)  评论(0编辑  收藏  举报