我们可以在 XCode 6 中使用 NSAppTransportSecurity 吗?

Can we use NSAppTransportSecurity in XCode 6?

在 WWDC 2015 上,Apple 宣布了 iOS 9 的“App Transport Security”。为了解决 SSL 错误和绕过 App Transport Security,Apple 在 info.plist 中引入了一个密钥 NSAppTransportSecurity .我们可以在 Xcode 6 本身中使用这个密钥吗?

根据this technote

App Transport Security is available on iOS 9.0 or later, and on OS X 10.11 and later.

该功能仅适用于 iOS 9.0 或 MacOS 10.11 或更高版本,但您当然可以将密钥放入编译到应用程序中的任何 Info.plist 文件中。