1.The resource could not be loaded because the App Transport Security policy requires the use of a secure connection
1
如果你的工程中有网络连接那么就会遇到以下的错误
The resource could not be loaded because the App Transport Security policy requires the use of a secure connection
这是因为苹果提高的网络安全等级 默认使用https了
但我们大多数使用的还是http
2
所以就要在我们的工程中找到info.plist文件
添加以下信息
AppTransportSecurity为Dictionary,
AllowsArbitraryLoads为Boolean
这是最新的xcode7.1版本的
之前xcode7.0 使用的是
NSAppTransportSecurity为Dictionary,
NSAllowsArbitraryLoads为Boolean
几乎是一样的的就是少了NS
添加时注意类型
END
2.warning: Could not resolve external type c:objc(cs)NSTimer
1
编译时出现很多类似
warning: Could not resolve external type c:objc(cs)NSTimer
的警告 非常之多 我的能达到八九十条
2
找到自己工程的target->build settings
直接搜索debug
找到build options下的debug information format
将对应的debug由之前的DWARF with dSYM File 改为DWARF就可以了
END
3.BitCode错误
1
编译时出现类似以下的信息
XXX does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64