iOS9: Will NSAllowsArbitraryLoads=True be allowed for a release in the App Store? [duplicate]

北战南征 提交于 2019-12-23 07:26:49

问题


Apple has changed its current App Transport Security model with the release of iOS 9. Since this I have the issue that my App doesn't trust certain web services anymore and will terminate with an error. I found a solution to "fix" this error and I'm wondering if the following solution which I added to the Info.plist file will prevent the App from being released in the Apple App Store.

  <key>NSAppTransportSecurity</key>                                                                                                                                                                                                                                       
  <dict>                                                                                                                                                                                                                                                                  
      <key>NSAllowsArbitraryLoads</key>                                                                                                                                                                                                                                   
      <true/>                                                                                                                                                                                                                                                             
  </dict>   

Does anybody know this?

Update:

Question is a duplicate to:

Does App Store reject submission if NSAllowsArbitraryLoads set to YES?


回答1:


Of course they'll allow you to submit apps with that setting. They added that override because some apps can't feasibly be released without allowing non-HTTPS requests. It will be a long time before it will be practical to ban unencrypted HTTP.

You may have to provide an explanation of why you're using that exception, of course.



来源:https://stackoverflow.com/questions/32495059/ios9-will-nsallowsarbitraryloads-true-be-allowed-for-a-release-in-the-app-store

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!