EXPORT FAILED: No profiles for 'com.xxx' were found, 在一键打包脚本遇到的,自己手动打也没出现问题的。

1、添加
-allowProvisioningUpdates YES
的,问题根源: 默认Xcode 不允许更新钥匙串内容进行动态读取
xcodebuild -allowProvisioningUpdates YES
然而我这边的问题依然如此
2、显示木有下载该 Profile 的,那就去下载的 Ad Hoc Profile 的。
结果还是不行
3、在 Xcode 11 Error Exporting IPA No profiles for 'my.bundle.id' were found 上面尝试, 这个需要谨慎。
- Open Xcode
- Select Product
- Select Archive (If Archive is gray, do a build for the Generic iOS Device first.)
- Select Distribute App
- Select App Store Connect from Radio Button List and then click Next.
- Select Export from Radio Button List and then click next.
- Check the Generate an Apple Distribution certificate.
- Export the certificate as a backup and to share with fellow developers.
最终导出一个 P12 的。
然而还是失败了,没啥用的( 这个动作需要谨慎的,否则等于整个团队都需要更新证书的)
4、 最后重新生成证书,下载其三种 Profile, 才解决。
非到最后,不需要这样做。
网友评论