空19&iOs 9应用运输安全
问题描述:
我已经下载了新的空气19 sdk为iOs9兼容性。空19&iOs 9应用运输安全
我上网,我需要在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中,文件在我的项目的想法。
现在每个人都可以添加此代码吗?
我发现这个互联网上:
准备您的Facebook应用程序适用于iOS 9(测试版) - 文档 - 的Facebook面向开发人员
https://developer.apple.com/library/prerelease/ios/technotes/App-Transport-Security-Techno TE/
,但并不能帮助我。
谢谢
答
你是对的。你必须将这些行添加到您的应用程序的描述:
<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>
这基本上说要允许非安全网址到你的应用程序中调用。 iOS9为所有api调用重新请求HTTPS。
整篇文章:http://htmlspank.tumblr.com/post/130674234457/ioerror-2032-ios9-adobe-air-and-ats