简体   繁体   中英

Error: Error code 65 for command: xcodebuild with args: -xcconfig?

this error on cordova run ios --device. if i run my app through xcode then it goes right but when i use CLI it stuck with above error.

This is similar to this answer of mine.
I had this same issue but in ionic and ionic also use phone-gap so I this this will help you too.
I would like to let you know my machine local environment setup-

******************************************************
Your system information:

Cordova CLI: 6.4.0 
Ionic Framework Version: 2.0.0-beta.10
Ionic CLI Version: 2.1.8
Ionic App Lib Version: 2.1.4
ios-deploy version: Not installed
ios-sim version: 5.0.8 
OS: OS X Yosemite
Node Version: v6.2.2
Xcode version: Xcode 7.2 Build version 7C68
******************************************************

It generally occurs when we took app raw code form some other machine and try to build. When I search for that I came to know that this issue is taking place due of spaces from build path
Steps I followed-

  1. Opened app config.xml in editor.
  2. Renamed App name such as-

<name>Rername App Title</name>
  1. $ cordova plugin save
  2. $ cordova platform rm ios
  3. $ cordova platform add ios After this I just build the app

$ ionic build ios

And that worked for me, hope you will get your issue resolved too. This link helped me a lot-
https://forum.ionicframework.com/t/ionic-build-ios-fails-android-works/10515/2

Note:- Make sure you have complete icon and splash of the app for each platform ie-

ionic resources

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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