Saturday, May 31, 2014

iOS 5.1 in Xcode 5.1 in Mavericks

I appropriated our neglected company iPad, because I had to test my app and this was the only iPad I was able to get my hands on. Unfortunately, it was the 1st generation. I updated it to the latest iOS available, but it wasn’t recent enough – 5.1.1 (current version is 7.1.1).

In Xcode it’s possible to set Deployment target for the app as low as iOS 6.0, but that’s it. Therefore the iPad wasn’t even in the selection of devices for testing. I read in Mavericks it’s not possible to build for iOS 5.x, which I found out it’s not exactly true.

The trick is quite simple. Do not rely just on the list of target iOS version, simply TYPE IN the required version, you can go as low as 5.1.1. Since then you can build apps in your latest OS X and latest Xcode for the very first iPad as well.

I had troubles to run my apps on the iPad though, it kept saying it can’t find the storyboard. In Targets > Build Phases > Copy Bundles Resources I indeed had both storyboards red.

The solution is to click on the storyboard in Navigator (left column in Xcode), then in the File inspector (right column in Xcode), find Localization section and check both Base and English. Also make sure Target Membership (just below) is checked. Repeat for the second storyboard and “Supporting files/InfoPlist.strings” file. Storyboards in Copy Bundles Resources turned black.

Somebody suggested to get rid of the Base lang (Project > Info > Localizations), which in my case resulted to losing all the storyboards, so be careful!

Thursday, June 13, 2013

iPhone App

After little playing with Android App I decided to give an iOS a try as well. For a long time I had difficulties in this area, as the only environment for deveoper tools (XCode) and SDKs are for OS X only, but ultimately I was able to deal with it and got my hands on OS X.

I created a new Apple ID with no credit card info (possible in iTunes) and from App Store downloaded/installed XCode. Everything was smooth, as I expected from Apple, and in couple of minutes I created my first test app.

I especially like the storyboard mode, I guess I can imagine such thing for QetriX as well.