(1)built for newer ios version (8.3) than being linked (7.0)
解决方法:在Build Settings -> other linker Flags 中添加-w
(2)code signing is required for product type 'Application' in SDK 'iOS X.0'
解决方法:修改PROJECT和ARGETS里的签名,Code Signing -> Code Signing Identity -> Debug -> Any ios SDK 将选项改为:iPhone Developer
(3)NSObjCRuntime,NSZone和NSObject编译不通过问题
原因:导入的第三方库中可能有用别的语言写的代码如:C++,.mm文件会把你工程中pch文件导入,而你的pch中导入的库都是OC的,导致编译不通过。
解决方法:在pch文件中加一个判断:
#ifdef __OBJC__
//原来pch文件中导入的头文件
#endif
(4)App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure.Temporary exceptions can be configured via your app's Info.plist file.
原因:在iOS9 beta1中,苹果将原http协议改成了https协议,使用 TLS1.2 SSL加密请求数据。
解决方法:在info.plist文件中配置如下字段