Xcode不会为iPhone 6编译

时间:2015-06-07 19:59:46

标签: ios xcode arm64

我有一个旧项目可以很好地编写我的iPhone 4,但是当我尝试为我的iPhone 6编译时,我会遇到这个星can't specifiy -Q with -arch arm64

这是什么意思?有没有人有任何想法?

这里是我项目设置的一个镜头: 第二个是我的项目subModule会议镜头: enter image description here

enter image description here

CompileC /Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/Objects-normal/arm64/maxvid_decode_arm.o AVAnimator/maxvid_decode_arm.s normal arm64 assembler-with-cpp com.apple.compilers.llvm.clang.1_0.compiler
cd "/Users/hashem/Desktop/Xcode Projects/Gulestan"
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 assembler-with-cpp -arch arm64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wmissing-prototypes -Wunreachable-code -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 -Wno-newline-eof -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -miphoneos-version-min=7.0 -iquote /Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/iGolestan-generated-files.hmap -I/Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/iGolestan-own-target-headers.hmap -I/Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/iGolestan-all-target-headers.hmap -iquote /Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/iGolestan-project-headers.hmap -iquote../OHAttributedLabel -I/Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Products/Debug-iphoneos/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/DerivedSources/arm64 -I/Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/DerivedSources -F/Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Products/Debug-iphoneos -no-integrated-as -MMD -MT dependencies -MF /Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/Objects-normal/arm64/maxvid_decode_arm.d --serialize-diagnostics /Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/Objects-normal/arm64/maxvid_decode_arm.dia -c /Users/hashem/Desktop/Xcode\ Projects/Gulestan/AVAnimator/maxvid_decode_arm.s -o /Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/Objects-normal/arm64/maxvid_decode_arm.o

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/as: can't specifiy -Q with -arch arm64
clang: error: assembler command failed with exit code 1 (use -v to see invocation)
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

1 个答案:

答案 0 :(得分:0)

您正在尝试编译AVAnimator / maxvid_decode_arm.s,它是ARM64构建目标下的32位ARM asm代码。您需要将嵌入到应用程序中的AVAnimator库的版本更新为github HEAD,以便为ARM64编译器。