ERROR ITMS-90161: "Invalid Provisioning Profile. The provisioning profile included in the bundle xxx [Payload/xxx.app] is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal."
最近开发好项目之后 把包导出来之后 莫名其妙的遇上上面这个错误 翻译就是 错误ITMS-90161:“设置配置文件无效
这个可能就是我们多次下载同一个bundle ID的provisioning 配置文件 导致签名的时候Xcode出问题了
暴力的解决问题就是打开 Finder 同时按Shift+command+g 键 输入:
~/资源库/MobileDevice/Provisioning Profiles/
清除最近使用的配置文件 然后在项目中重新引入配置文件 重新签名打包即可解决
![](https://img.haomeiwen.com/i4263394/ac916f18cd3e21fe.png)
![](https://img.haomeiwen.com/i4263394/855e4c7b51975d2c.png)
也有可能是配置文件失效的 需要重新去苹果的开发者后台重新创建和下载
网友评论