build立nds4ios时苹果LLVM 5.1错误

ProcessPCH /Users/sachinmansukhani/Library/Developer/Xcode/DerivedData/nds4ios-chkgruuwffdlbnewmhmwzxcpmeom/Build/Intermediates/PrecompiledHeaders/nds4ios-Prefix-cvqubcffbrdtbidyqsfmamzmeveu/nds4ios-Prefix.pch.pch nds4ios/support/nds4ios-Prefix.pch normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler cd /Users/sachinmansukhani/Documents/nds4ios export LANG=en_US.US-ASCII export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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/clang -x objective-c-header -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings -Ofast -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -DIOS -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -miphoneos-version-min=7.1 -iquote /Users/sachinmansukhani/Library/Developer/Xcode/DerivedData/nds4ios-chkgruuwffdlbnewmhmwzxcpmeom/Build/Intermediates/nds4ios.build/Debug-iphoneos/nds4ios.build/nds4ios-generated-files.hmap -I/Users/sachinmansukhani/Library/Developer/Xcode/DerivedData/nds4ios-chkgruuwffdlbnewmhmwzxcpmeom/Build/Intermediates/nds4ios.build/Debug-iphoneos/nds4ios.build/nds4ios-own-target-headers.hmap -I/Users/sachinmansukhani/Library/Developer/Xcode/DerivedData/nds4ios-chkgruuwffdlbnewmhmwzxcpmeom/Build/Intermediates/nds4ios.build/Debug-iphoneos/nds4ios.build/nds4ios-all-target-headers.hmap -iquote /Users/sachinmansukhani/Library/Developer/Xcode/DerivedData/nds4ios-chkgruuwffdlbnewmhmwzxcpmeom/Build/Intermediates/nds4ios.build/Debug-iphoneos/nds4ios.build/nds4ios-project-headers.hmap -I/Users/sachinmansukhani/Library/Developer/Xcode/DerivedData/nds4ios-chkgruuwffdlbnewmhmwzxcpmeom/Build/Products/Debug-iphoneos/include -I/Users/sachinmansukhani/Documents/nds4ios/Classes -I/Users/sachinmansukhani/Documents/nds4ios/nds4droid-code/jni/desmume/src -I/Users/sachinmansukhani/Documents/nds4ios -I/Users/sachinmansukhani/Documents/nds4ios/nds4droid-code/jni/desmume/src/android -I/Users/sachinmansukhani/Library/Developer/Xcode/DerivedData/nds4ios-chkgruuwffdlbnewmhmwzxcpmeom/Build/Intermediates/nds4ios.build/Debug-iphoneos/nds4ios.build/DerivedSources/armv7 -I/Users/sachinmansukhani/Library/Developer/Xcode/DerivedData/nds4ios-chkgruuwffdlbnewmhmwzxcpmeom/Build/Intermediates/nds4ios.build/Debug-iphoneos/nds4ios.build/DerivedSources -F/Users/sachinmansukhani/Library/Developer/Xcode/DerivedData/nds4ios-chkgruuwffdlbnewmhmwzxcpmeom/Build/Products/Debug-iphoneos -F/Users/sachinmansukhani/Documents/nds4ios -F/Users/sachinmansukhani/Documents/nds4ios/nds4ios/frameworks -F/Users/sachinmansukhani/Documents/nds4ios/nds4ios -F/Users/sachinmansukhani/Documents/nds4ios/nds4ios/dropbox -F/Users/sachinmansukhani/Documents/nds4ios/nds4ios/Reveal -DANDROID -fexceptions -ftree-vectorize -fsingle-precision-constant -fprefetch-loop-arrays -fvariable-expansion-in-unroller -DCOMPRESS_MT -DIOS -DHAVE_LIBZ -marm --serialize-diagnostics /Users/sachinmansukhani/Library/Developer/Xcode/DerivedData/nds4ios-chkgruuwffdlbnewmhmwzxcpmeom/Build/Intermediates/PrecompiledHeaders/nds4ios-Prefix-cvqubcffbrdtbidyqsfmamzmeveu/nds4ios-Prefix.pch.dia -MMD -MT dependencies -MF /Users/sachinmansukhani/Library/Developer/Xcode/DerivedData/nds4ios-chkgruuwffdlbnewmhmwzxcpmeom/Build/Intermediates/PrecompiledHeaders/nds4ios-Prefix-cvqubcffbrdtbidyqsfmamzmeveu/nds4ios-Prefix.pch.d -c /Users/sachinmansukhani/Documents/nds4ios/nds4ios/support/nds4ios-Prefix.pch -o /Users/sachinmansukhani/Library/Developer/Xcode/DerivedData/nds4ios-chkgruuwffdlbnewmhmwzxcpmeom/Build/Intermediates/PrecompiledHeaders/nds4ios-Prefix-cvqubcffbrdtbidyqsfmamzmeveu/nds4ios-Prefix.pch.pch clang: error: unknown argument: '-fsingle-precision-constant' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future clang: error: unknown argument: '-fvariable-expansion-in-unroller' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1 

帮帮我?

Xcode 5.1的一个主要变化是它所包含的clang版本不再接受未知/无效的参数。 你正在尝试构build一些使用参数-fsingle-precision-constant-fvariable-expansion-in-unroller -fsingle-precision-constant东西,这些都不合法。

无论你想要build立什么,你都必须承担这个责任(在这种情况下,显然是所谓的“nds4ios”)。 他们需要创build新的源代码,其构build命令不包含错误的参数。

或者,暂时恢复到Xcode 5.0.2内部的叮当声。 为此,请安装Xcode 5.0.2,然后在Xcode 5.1中打开“首选项”,切换到“位置”前面板,然后将“命令行工具”popup式菜单切换到Xcode 5.0.2。