【问题标题】:ionic build ios successful but ionic build ios --release failedionic build ios 成功但 ionic build ios --release 失败
【发布时间】:2018-04-03 03:44:41
【问题描述】:

我正在使用 ionic2 开发内部移动应用程序。我可以通过以下方式成功构建 ios:

ionic build ios and
ionic build ios --prod

但是当我这样做时它一直失败

ionic build ios --release

这是错误信息:

Check dependencies

Code Signing Error: CMLookup has conflicting provisioning settings. CMLookup is automatically signed for development, but a conflicting code signing identity iPhone Distribution has been manually specified. Set the code signing identity value to "iPhone Developer" in the build settings editor, or switch to manual signing in the project editor.

Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.2'



** ARCHIVE FAILED **

所以我在xcode中打开项目,取消选中自动管理签名,重新检查,重新选择Team(开发团队)但它仍然没有帮助。我去了 signing 部分的 xcode 项目 build setting,以确保 Code Signing Identity 中的所有设置都设置为 iOS开发人员

我也试过了

ionic platform remove ios
ionic platform add ios

但是当我执行 ionic build ios --release

时,我仍然不断收到上面的签名错误

我不知道我现在还应该尝试什么。请帮忙。谢谢!!

PS:我的离子信息:

Your system information:

Cordova CLI: 8.0.0 
Ionic Framework Version: 3.9.2
Ionic CLI Version: 2.2.3
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 3.1.7-201801172029
ios-deploy version: 1.9.2 
ios-sim version: 6.1.2 
OS: macOS
Node Version: v8.9.1
Xcode version: Xcode 9.2 Build version 9C40b

乔治

【问题讨论】:

  • 你试过这个命令了吗ionic cordova build ios --prod --release
  • 是的。我试过很多次。谢谢.. ionic cordova build ios --prod --release

标签: ios ionic2


【解决方案1】:

这很奇怪,但我只是断开了我的 iphone 与 mac 的连接,所以 xcode 在运行 ionic build ios --release 时没有任何变化来检测连接的 iphone。

值得从平台中删除 ios 并将其重新添加。

ionic platform remove ios
ionic platform add ios

还值得取消选中自动管理签名,重新检查,重新选择团队(开发团队)。并转到签名部分的 xcode 项目构建设置,以确保代码签名身份中的所有设置都设置为 iOS 开发人员。

【讨论】:

  • 同样的错误。从 USB 端口拔下 iPhone 后构建成功。
猜你喜欢
  • 1970-01-01
  • 2019-11-25
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-06-27
相关资源
最近更新 更多