为了实现iOs9兼容性,我下载了新的air 19 sdk。
我在互联网上发现,我需要在info.plist中添加以下代码:
<key>NSAppTransportSecurity</key> <dict> <key>NSExceptionDomains</key> <dict> <key>facebook.com</key> <dict> <key>NSIncludesSubdomains</key> <true/> <key>NSThirdPartyExceptionRequiresForwardSecrecy</key> <false/> </dict> <key>fbcdn.net</key> <dict> <key>NSIncludesSubdomains</key> <true/> <key>NSThirdPartyExceptionRequiresForwardSecrecy</key> <false/> </dict> <key>akamaihd.net</key> <dict> <key>NSIncludesSubdomains</key> <true/> <key>NSThirdPartyExceptionRequiresForwardSecrecy</key> <false/> </dict> </dict> </dict>但是,我不知道这一点,info.plist,在我的项目中存档。
现在每个人我可以在哪里添加这段代码?
我在网上发现了这个:
为iOS 9准备您的Facebook应用程序(Beta) -文档-面向开发人员的Facebook
https://developer.apple.com/library/prerelease/ios/technotes/App-Transport-Security-Techno te/
但帮不了我。
谢谢
发布于 2015-10-07 10:11:31
你说得对。您必须将这些行添加到应用程序的描述符中:
<InfoAdditions>
<![CDATA[
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>yourapiurl.com</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>
]]>
</InfoAdditions>这基本上是说你想让不安全的urls在你的应用程序中被调用。iOS9最近为所有api调用请求HTTPS。
本文全文:http://htmlspank.tumblr.com/post/130674234457/ioerror-2032-ios9-adobe-air-and-ats
https://stackoverflow.com/questions/32951496
复制相似问题