简体   繁体   English

cordova ios构建错误65,但Xcode工作正常

[英]cordova ios build error 65, but working fine from Xcode

I'm getting following error while ios build from Cordova. 我从Cordova构建ios时遇到以下错误。 But everything is working fine in XCODE. 但是XCODE中的一切都运行良好。 Note: I'm using 2 dev account because 1 of our app in live. 注意:我正在使用2开发帐户,因为我们的应用程序中有1个在线。 So there are 2 accounts in same mac machine. 所以在同一台mac机器上有2个账号。 I hope this doesn't matter with this issue. 我希望这与这个问题无关。

I'm sharing the error and the certificate screen shot from XCode 我正在分享错误和从XCode拍摄的证书屏幕

Error Message: 错误信息:

在此输入图像描述

And the certificates screen shot from Xcode (which is all working fine). 从Xcode拍摄的证书屏幕(一切正常)。

在此输入图像描述

Anybody having any clue about will help us a lot, THANKS. 任何有任何线索的人都会帮助我们很多,谢谢。

I had this issue because I have project has pre-installed plugins. 我有这个问题,因为我有项目已经预装了插件。 These plugins was request additional variables (like facebook4 plugin). 这些插件是请求额外的变量(如facebook4插件)。 If you have any plugins request variables first remove it: 如果您有任何插件请求变量,请先删除它:

ionic cordova rm plugin cordova-plugin-facebook

Then remove your platform and add it again 然后删除您的平台并重新添加

ionic cordova platform rm ios

ionic cordova platform add ios

Because you don't have any problems with your plugins, your platform will be added in correct way 因为您的插件没有任何问题,所以您的平台将以正确的方式添加

Then ionic cordova build ios 然后ionic cordova build ios

You need to add this flag : 你需要添加这个标志:

  • cordova build ios --buildFlag="-UseModernBuildSystem=0" cordova build ios --buildFlag =“ - UseModernBuildSystem = 0”

OR if you have build.json file at the root of your project, you must add this lines: 或者如果您在项目的根目录中有build.json文件,则必须添加以下行:

 {
  "ios": {
    "debug": {
      "buildFlag": [
        "-UseModernBuildSystem=0"
      ]
    },
    "release": {
      "buildFlag": [
        "-UseModernBuildSystem=0"
      ]
    }
  }
}

Hope this will help in the future 希望这将有助于将来

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

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