App Transport Security key NSAllowsArbitraryLoadsInMedia is not working as expected on iOS 10

时间:2016-08-31 17:18:05

标签: ios xcode ios10

As per Apple guide, the value of NSAllowsArbitraryLoads key is ignored if NSAllowsArbitraryLoadsForMediaContent key is present in app’s Info.plist file. But I have observed that this is not happening. So anyone has observed the same? I have tried this on iOS 10 beta 7 with Xcode 8 beta.

3 个答案:

答案 0 :(得分:2)

Yes, I have have observed the same. It seems a bug in iOS 10 beta 7. Hope it will work as mentioned in documentation in next release.

答案 1 :(得分:2)

它不会以你期望的方式运作。

...仅用于加载已加密的媒体 ... - Apple

答案 2 :(得分:1)

问题出在苹果文档中 标签的正确名称是NSAllowsArbitraryLoads For Media 我和苹果支持的人聊了聊。 他让我打开一个关于这个问题的bug。 Apple Bugid 29268036 Apple bug标题是“ NSAllowsArbitraryLoadsInMedia密钥不能用于NSAppTransportSecurity ” Apple修复了文档。 你现在可以看到正确的文档 https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW33 在我将我的plist改为右键后,它对我有用。 我在带有ios 10.2 beta 2的ipad air 2上查看它