当前位置:   article > 正文

M1打包 xxxx.xcodeproj: error: Provisioning profile “xxx“ doesn‘t include the currentlyselected device_provisioning profile doesn't include the currently

provisioning profile doesn't include the currently selected device

最近在M1芯片上执行xcodebuild archive命令,提示下面的错误:
/Users/xxxx.xcodeproj: error: Provisioning profile “xxxxx” doesn’t include the currently selected device “xxx的Mac mini” (identifier xxxx-xxxx-xxxx-xxxx). (in target ‘xxxx’ from project ‘xxxx’)。

后面的device是本机M1电脑,理论上构建只给手机安装的ipa,按道理是不应该提示。

解决方法(兼容):
在xcodebuild命令后面增加参数 -destination ‘generic/platform=iOS

xcodebuild archive -workspace ${WORKSPACE_FILE_NANE} -configuration clean -scheme ${SCHEME_NAME} -archivePath ${ARCHIVE_PATH} -destination ‘generic/platform=iOS’

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/article/detail/48080
推荐阅读
相关标签
  

闽ICP备14008679号