错误代码:No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64,VALID_ARCHS=armv7 armv7s)
错误:VALID_ARCHS=armv7 armv7s
低版本Xcode用了高版本的levels,改下设置
错误: active arch=x86_
不屑分类的森亮航行
解决 XCODE4编译出现[NO ARCHITECTURES TO COMPILE FOR (ARCHS=I386, VALID_ARCHS=] BY 船长@XCODE修理
2011/03/18 船长森哥
一项目在xcode3里编译正常,但是在xcode4就是编译不出来
,提示无法
Check dependencies
;[BEROR]No architectures to compile for (ARCHS=armv6 armv7, VALID_ARCHS=).
最终解决了
在项目设置里-architectures- 有个vaild Architectures选项 .默认是空白 所以编译的时候无法匹配(这里对应的是VALID_ARCHS),将其修改成armv6 armv7,然后再编译.问题解决
或者一个更简单的方法:直接删掉vaild Architecture
错误:Unsupported compiler 'com.apple.compilers.llvmgcc42' selected for architecture 'armv7
解决方法:
Change your compiler for C/C++/ObjectiveC Go to Build Settings->Build OPtions->compiler for C/C++/ObjectiveC; select Default(Apple LLVM5.0)
原文链接http://linglong117.blog.163.com/blog/static/27714547201381814624239/
错误: iOS7-解决 "The document “XXXX.xib/storyboard" could not be opened. Could not read archive"
当我的Project用Xcode5打开过后,然后又用Xcode4.x打开,选中XXXX.xib/storyboard文件时,有时会弹出 "The document “XXXX.xib/storyboard" could not be opened. Could not read archive" ,Xcode已给出解决方式 "Please use a newer version of Xcode. Consider changing the document's Development Target to preserve compatibility." 所以步骤如下:
1、用 Xcode5 打开 Project ;
2、选中问题所在的 XXXX.xib/storyboard 文件,打开 "Show File Inspector"选中Localizable.strings 点击 XCode-> View-> Utilities ->show File Inspector,即右侧栏第二项。
3、找到 "Interface Builder Document" ,编辑 "Open in"为 Xcode4.x 保存即可。
(Xcode4.x 下没有 "Open in" ,是 "Document Versioning" )
4、再次用 Xcode4.x 打开,就会发现原来不能打开的 XXXX.xib/storyboard 已恢复正常。
原文地址-----http://blog.csdn.net/wwmusic/article/details/12618967
Receiver type 'CALayer' for instance message is a forward declaration编译错误解决办法
解决办法
在你的.m文件中引入
#import<QuartzCore/QuartzCore.h>