1. 真机调试问题,错误提示:There was an internal API error
调试环境: Xcode7.1
真机:iPhone4 / ios7.1
原因:Build Settings中的Product Name不能是中文
2. 错误提示:
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中新增App Transport Security(简称ATS)特性, 主要使到原来请求的时候用到的HTTP,都转向TLS1.2协议进行传输。这也意味着所有的HTTP协议都强制使用了HTTPS协议进行传输。
解决:在Info.plist添加如图配置