用于命令的Cordova错误代码65:带args的xcodebuild

时间:2016-07-19 17:46:17

标签: ios xcode cordova

我尝试使用一些简单的代码来构建任务。

这样的步骤:

cordova -d create hello com.example.hello HelloWorld

cd hello

cordova platform add ios

cordova build ios

它引发了错误:

Create product structure
/bin/mkdir -p /Users/millet/hello/platforms/ios/build/emulator/HelloWorld.app

PhaseScriptExecution Copy\ www\ directory build/HelloWorld.build/Debug-iphonesimulator/HelloWorld.build/Script-304B58A110DAC018002A0835.sh
    cd /Users/millet/hello/platforms/ios
    /bin/sh -c /Users/millet/hello/platforms/ios/build/HelloWorld.build/Debug-iphonesimulator/HelloWorld.build/Script-304B58A110DAC018002A0835.sh
dyld: bad external relocation length
/Users/millet/hello/platforms/ios/build/HelloWorld.build/Debug-iphonesimulator/HelloWorld.build/Script-304B58A110DAC018002A0835.sh: line 2: 15137 Trace/BPT trap: 5       node cordova/lib/copy-www-build-step.js
Command /bin/sh failed with exit code 133

** BUILD FAILED **


The following build commands failed:
    PhaseScriptExecution Copy\ www\ directory build/HelloWorld.build/Debug-iphonesimulator/HelloWorld.build/Script-304B58A110DAC018002A0835.sh
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/millet/hello/platforms/ios/cordova/build-debug.xcconfig,-project,HelloWorld.xcodeproj,ARCHS=i386,-target,HelloWorld,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/millet/hello/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/millet/hello/platforms/ios/build/sharedpch

我的ios版本是4.1.1,cordova版本是6.2.0,xcode版本是7.2

1 个答案:

答案 0 :(得分:1)

我通过运行以下命令进行了修复:

chmod +x "[Path].sh"

Path更改为错误消息中显示的路径