IOS_警告错误
开发过程中遇到的警告错误。
知风的海
Code my world!
展开
-
警告: Scene is unreachable due to lack of entry points and does not have an identifier for runtime acc
现象:编译出现 Scene is unreachable due to lack of entry points and does not have an identifier for runtime access原因:有些场景无法到达,或者在程序中动态访问Scene,需要给其设置一个Storyboard ID解决方法:1、找到落单的场景,需原创 2015-06-29 14:32:25 · 811 阅读 · 0 评论 -
警告: Multiple build commands for output file
现象:编译出现警告Multiple build commands for output ...原因:编译的外部资源引入重复!解决方法:删一个targets->build phases->copy bundle resources,在右上方的搜索栏输入警告中提示的文件名,你会发现有两个同名的,选中一个点“-”删除。原创 2015-06-29 13:39:41 · 928 阅读 · 0 评论 -
错误:ld: library not found for -lWeChatSDK
现象:向工程中添加WeChatSDK,编译报出ld: library not found for -lWeChatSDK 错误。原因:工程在编译时找不到需要链接的库。解决方法:在工程的 Target 中选中要执行编译的某个target,打开 Build setting页面,在 “ Library Search Path” 中添加缺失链接库的所在文件夹的原创 2015-06-29 13:26:41 · 5234 阅读 · 0 评论 -
警告:Initalizing 'AppDelegate * __strong' with an expression of incompatible type ''id<UIApplication..
现象:使用ARC时,获取全局的AppDelegate会有警告Initalizing 'AppDelegate * __strong' with an expression of incompatible type ''id"。原因:类型不一致解决办法:强制类型转换实例:修改前:AppDelegate *app = [UIApplication sha原创 2015-06-29 13:31:29 · 1326 阅读 · 0 评论 -
警告: Unsupported configuration plain style unsupported in a navigation item
现象:编译出现警报原因:在IB上,如果你在bar button Item上添加了Round Rect Button 可能会出现这个错误。解决方法:将 BarbuttonItem设置成:Bordered参考资料:http://blog.sina.com.cn/s/blog_6123f9650101ngqk.html原创 2015-06-29 14:47:46 · 1254 阅读 · 0 评论