Fork us on GitHub

iOS Http URL's

Access to insecure URL's will become problematic this Sunday...
Post Image

iOS Http URL's

We’ll be migrating to the new iOS build servers this Sunday & this does entail one major thing you need to be aware of. With the new version of xcode http URL’s are blocked by Apple. We blogged about this a while back but this bares repeating as it’s something a lot of you will start running into.

To get an overview of the issue check out this article or the actual document from Apple. In a nutshell http URL’s are no longer supported by Apple to facilitate proper security.

You can disable this block by using the build hint ios.plistInject=<key>NSAppTransportSecurity</key><dict><key>NSAllowsArbitraryLoads</key><true/></dict> but if you don’t have a good reason to do this Apple will reject your app and won’t let you ship your app thru the appstore.

Be sure to update your apps!

Starting with this update our simulator will print out a warning every time you try to connect to an HTTP URL to help you detect the cases where you do so. Hopefully this will make the migration to the new servers smoother.

Share this Post:

Posted by Shai Almog

Shai is the co-founder of Codename One. He's been a professional programmer for over 25 years. During that time he has worked with dozens of companies including Sun Microsystems.
For more follow Shai on Twitter & github.