- Xcode 7中http通信出现如下错误:Application
- Xcode10 报错“ Multiple commands pr
- Failed to instantiate the defaul
- Xcode:"_OBJC_CLASS_$_MyView
- Compiling IB documents for earli
- This application’s application-i
- 'Decodable' is ambiguous
- Failed_shouldMakeReadyForDevelop
- XCode 10 错误:Multiple commands pr
- The 'Apple Developer Program
原因
在iOS9 beta1中,苹果将原http协议改成了https协议,使用 TLS1.2 SSL加密请求数据。
解决方法
编辑 info.plist,加入如下设置:
<plist>
<dict>
....
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
</dict>
</plist>
在info.plist中查看如下所示:
屏幕快照 2015-11-16 下午7.03.38.png
网友评论