[已解决]cocos2djs3.1不能在xcode上调试ios

Libtool /Users/Olivia/Library/Developer/Xcode/DerivedData/test-cbibsmprmquvascpctkhqhilcqio/Build/Products/Debug-iphonesimulator/libjsbindings\ iOS.a normal i386
cd /Users/Olivia/Documents/zybSdkTest/cocosProjects/cocos2d-js-3.1/test/frameworks/js-bindings/bindings/proj.ios_mac
setenv IPHONEOS_DEPLOYMENT_TARGET 5.1
setenv PATH “/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin”
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only i386 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -L/Users/Olivia/Library/Developer/Xcode/DerivedData/test-cbibsmprmquvascpctkhqhilcqio/Build/Products/Debug-iphonesimulator -L/Users/Olivia/Documents/zybSdkTest/cocosProjects/cocos2d-js-3.1/test/frameworks/js-bindings/bindings/proj.ios_mac/…/…/external/spidermonkey/prebuilt/ios -filelist /Users/Olivia/Library/Developer/Xcode/DerivedData/test-cbibsmprmquvascpctkhqhilcqio/Build/Intermediates/cocos2d_js_bindings.build/Debug-iphonesimulator/jsbindings\ iOS.build/Objects-normal/i386/jsbindings\ iOS.LinkFileList -ljs_static -o /Users/Olivia/Library/Developer/Xcode/DerivedData/test-cbibsmprmquvascpctkhqhilcqio/Build/Products/Debug-iphonesimulator/libjsbindings\ iOS.a

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: for architecture arm64 object: /Users/Olivia/Documents/zybSdkTest/cocosProjects/cocos2d-js-3.1/test/frameworks/js-bindings/bindings/proj.ios_mac/…/…/external/spidermonkey/prebuilt/ios/libjs_static.a(Compression.o) malformed object (unknown load command 3)
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool failed with exit code 1

楼主是哪个版本的xcode??

已经解决了,原来是因为我的xcode的版本太低了,更新一下就好了

恩。对的。至少要xcode 5.1.1以上 :7: