Hello,
I have build a iOS game based on Google Cardboard Unity SDK, it downloads and runs perfectly in iOS 8, but for iOS 9, when I try to download it from my own server it keeps give me a “Unable to download at this time” error. Has anyone been experiencing issue like this? Anyone know if unity google cardboard SDK is compatible with iOS 9? Or iOS 9 just not allow downloading from untrusted enterprise developer at all now? Thanks!
iOS 9 and OSX 10.11 require TLSv1.2 SSL for all hosts you plan to request data from unless you specify exception domains in your app’s Info.plist file.
So add the following syntax in Xcode project → info.plist
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>yourserver.com</key>
<dict>
<!--Include to allow subdomains-->
<key>NSIncludesSubdomains</key>
<true/>
<!--Include to allow insecure HTTP requests-->
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true/>
<!--Include to specify minimum TLS version-->
<key>NSTemporaryExceptionMinimumTLSVersion</key>
<string>TLSv1.1</string>
</dict>
</dict>
</dict>
OR
If your game needs to connect to some different host u can add this
<key>NSAppTransportSecurity</key>
<dict>
<!--Connect to anything (this is probably BAD)-->
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
If you’re having to do this, it’s probably best to update your servers to use TLSv1.2 and SSL, if they’re not already doing so. This should be considered a temporary workaround.
If you want more knowledge about it check out the WWDC 2015,
https://developer.apple.com/videos/wwdc/2015/?id=711