The new ATS https://developer.apple.com/library/prerelease/ios/technotes/App-Transport-Security-Technote/iOS 9 涉及导致许多 http 相关功能停止工作。我必须将所有 http 请求 url 添加到白名单中,或者我可以通过设置来禁用 ATSNSAllowsArbitraryLoads
to YES
.
有谁知道App Store是否会拒绝提交,如果NSAllowsArbitraryLoads
已设置为YES
?
谢谢大家的回答。
好消息是苹果Accepted
我的应用程序与NSAllowsArbitraryLoads
set to YES
.
UPDATE https://stackoverflow.com/questions/31534304/does-app-store-reject-submission-if-nsallowsarbitraryloads-set-to-yes/37827146#37827146(感谢@Vijayts):
Apple 将在 2016 年 12 月底后拒绝不符合 ATS 的应用程序。
Source http://thenextweb.com/apple/2016/06/15/apple-apps-ats/
但是,如果您只需要在 Web (UIWebView/WKWebView/SafariViewController) 中加载 http:// 资源,那么以下内容就足够了。
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoadsInWebContent</key>
<true/>
</dict>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)