2016-04-20 8 views
0

Ich habe gerade Xcode 7.2.1 installiert, die neueste Version ist nicht älter als 7.3. Ich bin in der Lage, Standard-ios-Version zu bauen, aber wenn ich versuche, cordova ios Version 4.0 zu bauen, gibt es folgenden Fehler.Was ist die minimale xcode-Version, die erforderlich ist, um cordova ios 4.0 zu bauen?

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 

Meine aktuelle Version von Cordova ist 5.3.1. mit der neuesten Version von Ionic. Also meine Sorge ist dieser Fehler wegen der älteren Version von xcode oder einem anderen Problem.

Antwort

0

Laut offiziellen cordova documentation ist der Xcode 4.5 die mindestens kompatible Version für cordova ios 4.0.0 Version. In Ihrem Fall sollte die Xcode-Version kein Problem darstellen. Es könnte ein Berechtigungsproblem sein. Versuchen Sie, Cordova zu aktualisieren, entfernen Sie die ios-Plattform und versuchen Sie, sie erneut hinzuzufügen und neu zu erstellen. Hoffe es hilft

Verwandte Themen