从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)………
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;
uiview
2012-10-10 12:17
11, 错误信息: "_OBJC_CLASS_$ xxxxx ", referenced from: objc-class-ref in ViewController.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决方法: 查看工程,看是不是没有导入相关的框架。
12, 错误信息: Couldn't register dy.CKRiLiText with the bootstrap server. Error: unknown error code. This generally means that another instance of this process was already running or is hung in the debugger.Current language: auto; currently objective-c
13 、 错误信息: ios 5是调试正常的,ios 6真机调试的时候,出现如下错误:ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/mac4/Desktop/my desktop/My app/MyApp name 20:09:12 /MyApp name/ZBarSDK/libzbar.a for architecture armv7serror: linker command failed with exit code 1 (use -v to see invocation)
14 、 错误信息: error: receiver type 'ViewController' for instance message does not declare a method with selector 'hideSearchBar:' [4] ViewController 中没有声明一个方法选择'hideSearchBar:
Direct access to objective-c's isa is deprecated in favor of object_setClass() and object_getClass() object->isa 替换为 object_getClass(object) keyObject->isa 替换为 object_getClass(keyObject) (id)keys[idx]->isa 替换为 object_getClass((id)keys[idx])
format specifies type 'unsigned long' but the argument has type 'nsuinteger' (aka 'unsigned int') 给变量增加(unsigned long)进行类型转换
33:md5加密(iOS SDK中自带了CommonCrypto)
Implicit declaration of function 'CC_MD5' is invalid in C99