Apple M1芯片 自动打包问题

自动打包的时候遇到如下的问题:Provising profile "PushNotificationServideDev" doesn;t include the currently selected device .....

 有很多台打包机,只有在其中这一台上打包的时候会报如上的错误,排查了一通后,发现这台打包机是M1芯片。

解决方案

修改 jenkins 脚本 或者 本地打包脚本,在对应的 xcodebuild 命令后添加对应参数

'generic/platform=iOS'

如下所示:

xcodebuild archive -workspace $project_name.xcworkspace -scheme $scheme_name -configuration $build_configuration -archivePath $export_archive_path -destination 'generic/platform=iOS'

参考链接:点我

猜你喜欢

转载自blog.csdn.net/jdd92/article/details/121894113