【发布时间】:2018-03-07 23:08:37
【问题描述】:
我今天刚刚安装了 Xcode 7.2.1,不是最新版本,最新的是 7.3。我可以构建默认的 ios 版本,但是当我尝试构建 cordova ios 4.0 版时,它会出现以下错误。
The following build commands failed:
CompileC build/app.build/Debug-iphonesimulator/app.build/Objects-normal/i386/MainViewController.o app/Classes/MainViewController.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Error code 65 for command: xcodebuild with args: -xcconfig,/Applications/apps/band/platforms/ios/cordova/build-debug.xcconfig,-project,app.xcodeproj,ARCHS=i386,-target,app,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Applications/apps/band/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Applications/apps/band/platforms/ios/build/sharedpch
ERROR building one of the platforms: Error: /Applications/apps/band/platforms/ios/cordova/build: Command failed with exit code 2
You may not have the required environment or OS to build this project
Error: /Applications/apps/band/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 emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:817:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5
我当前的科尔多瓦版本是 5.3.1。使用最新版本的 Ionic。所以我担心这个错误是由于旧版本的 xcode 或其他问题引起的。
【问题讨论】:
标签: ios xcode cordova ionic-framework