在 iOS 中设置 NSAllowsArbitraryLoads 9 - Apple 会拒绝该应用程序吗?
Setting NSAllowsArbitraryLoads in iOS 9 - Will Apple reject the app?
我突然在 iOS 9
上收到一条消息:
The resource could not be loaded because the App Transport Security
policy requires the use of a secure connection
Searched 一点,发现将 NSAllowsArbitraryLoads 设置为 YES 可以解决这个问题,这确实有效。
但是我也发现 为此。
尽管在 App Transport Security Technote
中说明
NSAllowsArbitraryLoads
A Boolean value used to disable App Transport Security for any domains not listed in the NSExceptionDomains dictionary. Listed
domains use the settings specified for that domain.
但由于这是目前唯一有效的解决方案,而且 Apple 可能会也可能不会 拒绝该应用程序,只是想在发布前确认一下。
更新:Apple 通过了审核,我的应用程序现在可以使用此设置:)
更新:
Apple 宣布 iOS 应用程序必须在 2017 年 1 月 1 日之前启用应用程序传输安全。
因此,如果您计划在 2017 年 之后将应用提交到应用商店,请打开 ATS。
还有,看这个link
====== 旧答案=====
我的经验:
我在 2015 年 9 月 17 日 提交了我的应用程序,并已通过应用程序商店审核流程并成功发布了应用程序。
这是我的应用程序的 info.plist 屏幕截图。
所以,我觉得apple暂时不会因为这个原因拒绝app
更新:
我的新应用程序 通过了 Apple 审核流程 10/30/2015,此键设置为 YES。
因此浪费了相当多的时间(⏱ == )。测试新的 NSURL...代码对某些用户失败,对其他用户有效。不知道为什么。然后偶然发现了我通常不看的日志输出(谁真的在 iPhone 上看到了日志,真的......)并且有这个警告。
那是 Apple 的一个相当下流的把戏...浪费时间在调试上,浪费时间让用户感到沮丧,在拥有 "works" 的软件上失去信誉。由于 Apple 的棍子推在那里而导致辐条断裂。将不得不和我的测试人员一起把 Apple 扔到公共汽车下。
参考:
NSAppTransportSecurity:NSAllowsArbitraryLoads
NSAppTransportSecurity:NSExceptionDomains
我突然在 iOS 9
上收到一条消息:
The resource could not be loaded because the App Transport Security policy requires the use of a secure connection
Searched 一点,发现将 NSAllowsArbitraryLoads 设置为 YES 可以解决这个问题,这确实有效。
但是我也发现
NSAllowsArbitraryLoads
A Boolean value used to disable App Transport Security for any domains not listed in the NSExceptionDomains dictionary. Listed domains use the settings specified for that domain.
但由于这是目前唯一有效的解决方案,而且 Apple 可能会也可能不会 拒绝该应用程序,只是想在发布前确认一下。
更新:Apple 通过了审核,我的应用程序现在可以使用此设置:)
更新:
Apple 宣布 iOS 应用程序必须在 2017 年 1 月 1 日之前启用应用程序传输安全。
因此,如果您计划在 2017 年 之后将应用提交到应用商店,请打开 ATS。
还有,看这个link
====== 旧答案=====
我的经验:
我在 2015 年 9 月 17 日 提交了我的应用程序,并已通过应用程序商店审核流程并成功发布了应用程序。
这是我的应用程序的 info.plist 屏幕截图。
所以,我觉得apple暂时不会因为这个原因拒绝app
更新:
我的新应用程序 通过了 Apple 审核流程 10/30/2015,此键设置为 YES。
因此浪费了相当多的时间(⏱ == )。测试新的 NSURL...代码对某些用户失败,对其他用户有效。不知道为什么。然后偶然发现了我通常不看的日志输出(谁真的在 iPhone 上看到了日志,真的......)并且有这个警告。
那是 Apple 的一个相当下流的把戏...浪费时间在调试上,浪费时间让用户感到沮丧,在拥有 "works" 的软件上失去信誉。由于 Apple 的棍子推在那里而导致辐条断裂。将不得不和我的测试人员一起把 Apple 扔到公共汽车下。
参考: NSAppTransportSecurity:NSAllowsArbitraryLoads NSAppTransportSecurity:NSExceptionDomains