有時當我嘗試建立在我的xcode項目的ios我得到以下錯誤離子iOS應用構建失敗MainController.xib
The following build commands failed:
CompileXIB ProjectName/Classes/MainViewController.xib
Error code 65 for command: xcodebuild with args: -xcconfig,/Users/ritesh/Documents/Projects/test-app/platforms/ios/cordova/build-debug.xcconfig,-project,ProjectName.xcodeproj,ARCHS=i386,-target,ProjectName,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/ritesh/Documents/Projects/test-app/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/ritesh/Documents/Projects/test-app/platforms/ios/build/sharedpch
ERROR building one of the platforms: Error: /Users/ritesh/Documents/Projects/test-app/platforms/ios/cordova/build: Command failed with exit code 2
You may not have the required environment or OS to build this project
Error: /Users/ritesh/Documents/Projects/test-app/platforms/ios/cordova/build: Command failed with exit code 2
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:139:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
我讀到這bolog後,雖然他的建議是有道理的,但我沒有一個他說我應該看到當我打開我的.pbxproj文件的文件的副本。
https://medium.com/@_qzapaia/cordova-ionic-ios-build-error-697a7ec5b46#.snruarnmz
如果我建我的項目是第二次,它建立適當的這樣的IM不知道什麼是有時候會這樣。任何人的線索?
乾杯
我認爲這是xcode的一個bug,蘋果打破了更新的東西,我也一直在本地項目上獲得這 – jcesarmobile
我有同樣的問題。我手動「rm plugins/ios.json」,然後是「cordova platform rm ios」(可能是多餘的),然後是「cordova platform add ios」。更改的權限,它的工作。 –