After an incredibly infuriating day spent debugging my previously working iOS app following a new dev Mac, replacement iPhone, all with unsupported software (Xcode Beta, iOS 9.1 beta etc). I found out why my app worked in the Corona simulator but not on the Xcode simulator or my device - “App Transport Security”!!! Grrrrr…
I’m pulling images from a server app I wrote in xojo. It uses an unsecured connection. iOS9 now defaults to requiring secure connections. I now plan to rebuild my server app to support TLS, but thats a project for another month. I believe, if I add the following key to my apps info.plist file it will disable App Transport Security for my app. This is all still beta use, so I’m not worried about AppStore rejection.
Can someone format the following:
\<key\>NSAppTransportSecurity\</key\>\<dict\> \<key\>NSAllowsArbitraryLoads\</key\> \<true/\> \</dict\>
to go in my ‘default’ build.settings file:
-- Supported values for orientation:-- portrait, portraitUpsideDown, landscapeLeft, landscapeRight settings = { orientation = { default = "portrait", supported = { "portrait", } }, iphone = { plist = { UIStatusBarHidden = false, UIPrerenderedIcon = true, -- set to false for "shine" overlay UIApplicationExitsOnSuspend = true, CFBundleIconFile = "Icon.png", CFBundleIconFiles = { "Icon.png" , "Icon@2x.png" , "Icon-72.png" , }, } }, --[[For Android: androidPermissions = { "android.permission.INTERNET", },]]-- }