[iOS] network and custom fonts not working in Enterprise build

In trying to convert our Corona SDK app into a native iOS app through Enterprise, I’ve run into two issues:

  1.  Network functionality isn’t working.  On the device it just says a network couldn’t be found.  On the simulator, it says the global “network” is nil.

  2.  Custom fonts aren’t being applied to the app.  Is there anything special that I need to do to get custom fonts to work?  I’ve tried suggestions found in here: http://stackoverflow.com/questions/25290400/using-custom-fonts-in-xcode-6-swift  but it didn’t do anything.

Any help is appreciated.

OS X 10.10.5, XCode 7, Corona Enterprise 2015.2716

Thanks,

Kenric

Ok, I figured out #2.  I had to add the UIAppFonts key/values from the build.settings file into the info.plist.

Now I just need to figure out why the network isn’t working…

I figured out the network issue on the device build. iOS 9 introduces App Transport Security which is on by default and that will prevent any insecure http requests from happening unless you whitelist the server or turn off that feature completely in the info.plist file.  Here’s a blog post that helped me out: http://ste.vn/2015/06/10/configuring-app-transport-security-ios-9-osx-10-11/

I’m still getting the runtime error in the iOS simulator “attempt to index global ‘network’ (a nil value)”.

Ok, I figured out #2.  I had to add the UIAppFonts key/values from the build.settings file into the info.plist.

Now I just need to figure out why the network isn’t working…

I figured out the network issue on the device build. iOS 9 introduces App Transport Security which is on by default and that will prevent any insecure http requests from happening unless you whitelist the server or turn off that feature completely in the info.plist file.  Here’s a blog post that helped me out: http://ste.vn/2015/06/10/configuring-app-transport-security-ios-9-osx-10-11/

I’m still getting the runtime error in the iOS simulator “attempt to index global ‘network’ (a nil value)”.