您的位置:首页 > 移动开发 > IOS开发

ios开发中遇到的错误总结

2014-01-23 13:50 477 查看
开始做个记录,逐渐添加~

1:Undefined
symbols for
architecture arm64:

Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_FBSession", referenced from: someFile
ld: symbol(s) not found for architecture arm64

解决:

project -> target (your project name) -> build settings and change architectures to standard architectures (armv7, armv7s), and valid architectures to
armv7, armv7s.

参考:http://stackoverflow.com/questions/19213782/undefined-symbols-for-architecture-arm64

2:No
architectures to compile for (ARCHS=arm6 arm7, VALID_ARCHS=armv7)

解决:

Go to 
Project
Target > Build Settings > Architectures
 Delete whatever you see there, and then add these rows one by one:

armv6 armv7

There are no 'save' buttons there, so what I do, is adding another blank row, pressing enter, removing it, and then clicking out somewhere else, so that I make sure I have both of them added:



Now go to the AppName-Info.plist file, and look for the key "Require device capabilities" and delete it all.
参考:http://stackoverflow.com/questions/10005896/no-architectures-to-compile-for-archs-arm6-arm7-valid-archs-armv7


3:iOS
使用宏 常量 报错 expected expression

报错的代码:



报错原因:多写了一个分号!



参考:http://www.cnblogs.com/ygm900/p/3472324.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: