级后,常常遇到的遇到的警告、错误,解决方法
来源:互联网 发布:分页查询sql语句mysql 编辑:程序博客网 时间:2024/05/20 14:44
从sdk3.2.5升级到sdk 5.1中间废弃了很多的方法,还有一些逻辑关系更加严谨了。
1,警告:“xoxoxoxo” is deprecated
解决办法:查看xoxoxoxo的这个方法的文档,替换掉这个方法即可。
2,警告:Declaration of "struct sockaddr" will not be visible outside of this function
解决办法:在你的开源.m文件中添加 #import <netinet/in.h>
3,警告:Implicit conversion from enumeration type 'UIInterfaceOrientation' to different enumeration type 'UIDeviceOrientation'
解决办法:类型不匹配。跳到出错的那一行,UIInterfaceOrientation强制转换为UIDeviceOrientation就行了。
4,警告:incompatible pointer types assigning to 'MyArrayList*'from 'NSMutableArray'
解决办法:加入强制转换(MyArrayList*)
5,警告:'&&' within '||'
问题出处:
if (exists && !isDirectory || !exists)………
解决办法: if ((exists && !isDirectory) || !exists)………
6,警告:Warning:The Copy Bundle Resources build phase contains this target's Info.plist file
解决办法:将Info.plist文件移到Resources目录下,而不要直接放在target下。
7,警告:在使用ASIHttp…第三方库的,运行报错。
解决办法:看你的项目中是否添加CFNetwork.framework、SystemConfiguration.framework, MobileCoreServices.framework,
CoreGraphics.framework和libz.1.2.3.dylib,如果是sdk5.0以上,改添加libz.1.2.5.dylib
8,警告:xxxooo,missing required architecture i386 in file
解决办法:如果是错误信息的话:Target->Build Settings->Search Paths, 删除FrameworkSearch Paths 里面内容就可以了。
要只是一个警告的话,真机调试可以过。具体解决方法待大神出现。
9,警告:
clang: error: no such file or directory: '/demo2/控件代码/13/Recorder/Recorder_Prefix.pch'
clang: error: no input files
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1
解决办法: 在你的主工程文件 target搜素,pch ,找到Prefix Header 把它后面的值,都删除,再运行就解决了。
10,警告:
“ARC forbids synthesizing a property of an Objective-C object with unspecified ownership or storage attribute
解决办法:如果定义了ARC有效,那么必须要有所有者属性的定义;所以代码改成下面这样
@property (nonatomic, strong, readonly) NSString *ss;
11,警告:
io6一下的xib系统均没有自动选择Use Autolayout, Supporting iOS 5 and below with xib of iOS 6
解决办法:Just un-select “Use Autolayout” in the file inspector of the xib’s view and we are back to the familiar autosizing in size inspector and boom, it supports iOS 5 and below.
12,警告:
Warning: Multiple build commands for output file xxx.png
解决办法:找到项目里xxx.png重复,删除重复的资源。
解决办法:查看xoxoxoxo的这个方法的文档,替换掉这个方法即可。
2,警告:Declaration of "struct sockaddr" will not be visible outside of this function
解决办法:在你的开源.m文件中添加 #import <netinet/in.h>
3,警告:Implicit conversion from enumeration type 'UIInterfaceOrientation' to different enumeration type 'UIDeviceOrientation'
解决办法:类型不匹配。跳到出错的那一行,UIInterfaceOrientation强制转换为UIDeviceOrientation就行了。
4,警告:incompatible pointer types assigning to 'MyArrayList*'from 'NSMutableArray'
解决办法:加入强制转换(MyArrayList*)
5,警告:'&&' within '||'
问题出处:
if (exists && !isDirectory || !exists)………
解决办法: if ((exists && !isDirectory) || !exists)………
6,警告:Warning:The Copy Bundle Resources build phase contains this target's Info.plist file
解决办法:将Info.plist文件移到Resources目录下,而不要直接放在target下。
7,警告:在使用ASIHttp…第三方库的,运行报错。
解决办法:看你的项目中是否添加CFNetwork.framework、SystemConfiguration.framework, MobileCoreServices.framework,
CoreGraphics.framework和libz.1.2.3.dylib,如果是sdk5.0以上,改添加libz.1.2.5.dylib
8,警告:xxxooo,missing required architecture i386 in file
解决办法:如果是错误信息的话:Target->Build Settings->Search Paths, 删除FrameworkSearch Paths 里面内容就可以了。
要只是一个警告的话,真机调试可以过。具体解决方法待大神出现。
9,警告:
clang: error: no such file or directory: '/demo2/控件代码/13/Recorder/Recorder_Prefix.pch'
clang: error: no input files
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1
解决办法: 在你的主工程文件 target搜素,pch ,找到Prefix Header 把它后面的值,都删除,再运行就解决了。
10,警告:
“ARC forbids synthesizing a property of an Objective-C object with unspecified ownership or storage attribute
解决办法:如果定义了ARC有效,那么必须要有所有者属性的定义;所以代码改成下面这样
@property (nonatomic, strong, readonly) NSString *ss;
11,警告:
io6一下的xib系统均没有自动选择Use Autolayout, Supporting iOS 5 and below with xib of iOS 6
解决办法:Just un-select “Use Autolayout” in the file inspector of the xib’s view and we are back to the familiar autosizing in size inspector and boom, it supports iOS 5 and below.
12,警告:
Warning: Multiple build commands for output file xxx.png
解决办法:找到项目里xxx.png重复,删除重复的资源。
- 级后,常常遇到的遇到的警告、错误,解决方法
- 升级后,常常遇到的遇到的警告、错误,解决方法
- Xcode 升级后,常常遇到的遇到的警告解决方法
- 常常遇到的遇到的警告、错误,解决方法(转)
- iOS 常常遇到的遇到的警告、错误,解决方法
- Xcode 升级后,常常遇到的遇到的警告、错误,解决方法
- Xcode 升级后,常常遇到的遇到的警告、错误,解决方法(转)
- Xcode 升级后,常常遇到的遇到的警告、错误,解决方法
- Xcode 升级后,常常遇到的遇到的警告、错误,解决方法
- Xcode 升级后,常常遇到的遇到的警告、错误,解决方法
- Xcode 升级后,常常遇到的遇到的警告、错误,解决方法
- Xcode 升级后,常常遇到的遇到的警告、错误,解决方法
- Xcode 升级后,常常遇到的遇到的警告、错误,解决方法
- Xcode 升级后,常常遇到的遇到的警告、错误,解决方法(转)
- Xcode 升级后,常常遇到的遇到的警告、错误,解决方法
- Xcode 升级后,常常遇到的遇到的警告、错误,解决方法
- Xcode 升级后,常常遇到的遇到的警告、错误,解决方法
- Xcode 升级后,常常遇到的遇到的警告、错误,解决方法
- 在cmd中启动mysql
- 平均数和标准差
- shell 脚本 睡眠
- Android使用ksoap2调用C#中的webservice函数方法
- Shell 脚本学习资料搜集
- 级后,常常遇到的遇到的警告、错误,解决方法
- 英文地址格式
- 通过dbcc page来查看SQL Server表中的数据
- Android AsyncTask完全解析,带你从源码的角度彻底理解
- ACM STEP 1.2.2 Financial Management
- 共用体和枚举类型
- Visitor Pattern
- Mysql的死锁问题,解决Locked状态
- 初学hadoop之--------java中的for each语句----for (IntWritable val : values)