2017-06-12 120 views
0

,當我跑我的項目,我得到這個錯誤。實際上,我在iOS應用程序和watchOS擴展程序中將App Transport Security Settings的值設置爲YES(如我的截圖中所示)。WatchKit NSAppTransportSecurity錯誤

enter image description here

任何想法?謝謝!

+0

當你設置'應用傳輸安全Settings'爲NO,會發生什麼?或者你需要它嗎?我在這裏找到了一些東西,這可能會幫助你解決問題。 https://stackoverflow.com/questions/32571265/app-installation-failed-app-has-disallowed-info-plist-key –

回答

0

它似乎是不允許的「watchkitapp」 - 目標本身。您仍然可以將ATS-Key添加到「watchkitapp-extension」 - 目標的Info.plist

你應該能夠定義一個例外域是這樣的:

enter image description here