将xcode更新到4.5版本后,我出现了错误
命令
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
失败,退出代码为1
更新后,我读到类似这样的错误,但是在目标的构建设置中更改体系结构无济于事。它可以在模拟器上运行,但不能在设备上运行。
整个错误
编译器
/Users/psitkowski/Library/Developer/Xcode/DerivedData/Jasiu2-gskaidiujznurtdqnebvtogjtdnd/Build/Intermediates/Jasiu2.build/Debug-iphoneos/Jasiu2.build/Objects-normal/armv7/maxvid_decode_arm.o
类/AVAnimator/maxvid_decode_arm.s普通armv7汇编器与cpp
com.apple.compilers.llvm.clang.1_0.compiler
cd /用户/ psitkowski / Xcode / ksiazki / kopie / Jasiu2
setenv LANG en_US.US-ASCII
setenv 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带cpp的汇编器-arch armv7 -fmessage-length = 0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wformat -Wno-missing -括号-括号-Wswitch -Wno未被使用的功能-Wno未被使用的标签-Wno未被使用的参数-Wunused变量-Wunused值-Wempty主体-Wuninitialized -Wno未知的编译指示-Wno阴影-Wno -四个字符常量-Wno转换-Wno-shorten-64-32 -Wno-newline-eof -DDEBUG = 1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer /SDKs/iPhoneOS6.0.sdk
-Wdeprecated-clarifications -g -Wno-sign-conversion -miphoneos-version-min = 5.1 -iquote /Users/psitkowski/Library/Developer/Xcode/DerivedData/Jasiu2-gskaidiujznurtdqnebvtogjtdnd/Build/Intermediates/Jasiu2.build/Debug /Jasiu2.build/Jasiu2-generation-files.hmap
-I /用户/ psitkowski /库/开发人员/Xcode/DerivedData/Jasiu2-gskaidiujznurtdqnebvtogjtdnd/Build/Intermediates/Jasiu2.build/Debug-iphoneos/Jasiu2.build/Jasiu2-own-target-headers.hmap
-I / Users / psitkowski / Library / Developer / Xcode / DerivedData / Jasiu2-gskaidiujznurtdqnebvtogjtdnd / Build / Intermediates / Jasiu2.build / Debug-iphoneos / Jasiu2.build / Jasiu2-all-target-headers.hmap
-iquote /Users/psitkowski/Library/Developer/Xcode/DerivedData/Jasiu2-gskaidiujznurtdqnebvtogjtdnd/Build/Intermediates/Jasiu2.build/Debug-iphoneos/Jasiu2.build/Jasiu2-project-headers.hmap
-I /用户/ psitkowski /库/开发人员/ Xcode / DerivedData / Jasiu2-gskaidiujznurtdqnebvtogjtdnd /构建/产品/ Debug-iphoneos / include
-I / Applications / Xcode.app / Contents / Developer / Toolchains / XcodeDefault.xctoolchain / usr / include
-I / Applications / Xcode.app / Contents / Developer / Toolchains / XcodeDefault.xctoolchain / usr / include
-I / Applications / Xcode.app / Contents / Developer / Toolchains / XcodeDefault.xctoolchain / usr / include
-I /用户/ psitkowski /库/开发人员/Xcode/DerivedData/Jasiu2-gskaidiujznurtdqnebvtogjtdnd/Build/Intermediates/Jasiu2.build/Debug-iphoneos/Jasiu2.build/DerivedSources/armv7
-I /用户/ psitkowski /库/开发人员/Xcode/DerivedData/Jasiu2-gskaidiujznurtdqnebvtogjtdnd/Build/Intermediates/Jasiu2.build/Debug-iphoneos/Jasiu2.build/DerivedSources
-F /用户/ psitkowski /库/开发人员/ Xcode / DerivedData / Jasiu2-gskaidiujznurtdqnebvtogjtdnd /构建/产品/ Debug-iphoneos
-MMD -MT依赖项-MF /Users/psitkowski/Library/Developer/Xcode/DerivedData/Jasiu2-gskaidiujznurtdqnebvtogjtdnd/Build/Intermediates/Jasiu2.build/Debug-iphoneos/Jasiu2.build/Objects-normal/armv7/maxvidd_decode
--serialize-diagnostics /Users/psitkowski/Library/Developer/Xcode/DerivedData/Jasiu2-gskaidiujznurtdqnebvtogjtdnd/Build/Intermediates/Jasiu2.build/Debug-iphoneos/Jasiu2.build/Objects-normal/armv7/maxvid_decode
-c /用户/psitkowski/Xcode/ksiazki/kopie/Jasiu2/Classes/AVAnimator/maxvid_decode_arm.s
-o /用户/ psitkowski /库/开发人员/Xcode/DerivedData/Jasiu2-gskaidiujznurtdqnebvtogjtdnd/Build/Intermediates/Jasiu2.build/Debug-iphoneos/Jasiu2.build/Objects-normal/armv7/maxvid_decode_arm.o
/用户/psitkowski/Xcode/ksiazki/kopie/Jasiu2/Classes/AVAnimator/maxvid_decode_arm.s:65:2:
错误:指令r8,[r10],#2 ^无效
...
大约100条以上的行
...
/用户/psitkowski/Xcode/ksiazki/kopie/Jasiu2/Classes/AVAnimator/maxvid_decode_arm.s:474:2:
错误:指令stmeqia r10 !, {r0,r1} ^命令无效
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
失败,退出代码为1
当我忘记在构建阶段添加libz.dylib时,我遇到了这样的错误。
你知道如何解决吗?
非常感谢,
最佳答案
是的,Xcode 4.5进行了一些更改,破坏了ASM代码的编译。修复很容易,只需在AVAnimator中的maxvid_decode_arm.s文件的编译选项中添加-no-integrated-as标志即可。
像这样:
在左侧窗口中选择列出文件的项目文件(这是带有蓝色图标的顶部文件)。
在“目标”列表中选择目标。
选择“构建阶段”选项卡。
双击maxvid_decode_arm.s,然后通过粘贴到出现的列表中添加-no-integrated-as。