今天用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>

螢幕快照 2015-09-25 下午6.47.10.png 

解答來自:
http://www.cocoachina.com/bbs/read.php?tid-307066-...

arrow
arrow
    文章標籤
    iOS xCode
    全站熱搜
    創作者介紹
    創作者 艾娃小姐 的頭像
    艾娃小姐

    我是艾娃小姐

    艾娃小姐 發表在 痞客邦 留言(0) 人氣()