今天用Xcode 7打包程式,在模擬器iOS 9遇到以下訊息:
Application 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.
只要在info.plist添加以下內容即可
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
文章標籤
全站熱搜