繁体   English   中英

离子构建ios成功,但离子构建ios --release失败

[英]ionic build ios successful but ionic build ios --release failed

我正在使用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(开发团队),但这仍然无济于事。 我去了“ 签名”部分的xcode项目构建设置 ,以确保“代码签名身份”中的所有设置都设置为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

乔治

这很奇怪,但是我只是将iphone与mac断开了连接,因此xcode在运行ionic build ios --release时不会检测到已连接的iphone。

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

ionic platform remove ios
ionic platform add ios

还需要取消选中自动管理签名 ,将其签回,然后重新选择团队(开发团队)。 并转到“签名”部分中的“ xcode项目构建设置”,以确保“代码签名身份”中的所有设置均已设置为iOS开发人员。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM