Warning & Bug

1. Cocoapod引入的第三方含有警报

解决方法:在podfile文件中 增加一句inhibit_all_warnings!

2. directory not found for option ‘-L/…

解决方法:Project -> targets -> Build Setting -> Library Search Paths,删除对应路径

3. directory not found for option ‘-F/…

解决方法:Project -> targets -> Build Setting -> Framework Search Paths,删除对应路径

4. Empty paragraph passed to ‘***’ command

解决方法:Project -> targets -> Build Setting -> Other Warning Flags,添加-Wno-documentation

5. This block declaration is not a prototype

解决方法:(3种)
1. typedefvoid (^ SomeBlock)(void);
2.

3. Project -> targets -> Build Setting -> Strict Prototypes,设置为NO

6. no such file or directory: /users/apple/XXX

解决方法:Project -> targets -> Build Phases -> Compile Sources,
查看文件是不是存在,如果不存在就加进去
如果文件存在,那么可能会有两个相同的文件,删除错误路径的那个就可以了

7. Could not find Developer Disk Image

解决方法:升级Xcode!

8. -[ViewController aMethod:]: unrecognized selector sent to instance 0x7fe91e607fb0

ViewController不能响应aMethod这个方法,错误原因可能viewController文件中没有实现aMethod这个方法

9. UITableView (<UITableView: 0x7ff19b027000; >) failed to obtain a cell from its dataSource (<ViewController: 0x7ff19a507520>)

-tableView:cellForRowAtIndexPath:返回了一个nil。或者返回值不是UITableViewCell类型也会出现这个错误

10. Implicit conversion loses integer precision: ‘NSInteger’ (aka ‘long’) to ‘int32

解决办法:http://blog.csdn.net/yohunl/article/details/41984505