iOS開發之XCode模擬器不能鏈接網絡

新裝的Xcode7 編譯程序 出現 #warning: 獲取app配置信息失敗: The resource could not be loaded because the App Transport Security 我開始覺得是xcode沒優化好的緣故,其實這是蘋果加大安全的管控,將以往HTTP協議強制改成HTTPS協議,之後的APP應該都是了,根本解決辦法 改協議,臨時解決辦法在Info.plist中添加  NSAppTransportSecurity 類型  Dictionary Dictionary 下添加  NSAllowsArbitraryLoads 類型 Boolean ,值設爲  YES,OK搞定,XCODE7 又能跑起來了,程序猿哥哥又能夠碼代碼了!!!!!!!
相關文章
相關標籤/搜索