Access builds for iOS 6 Beta
Everyone is highly anticipating Apple’s “special event” next week. Presumably it’s to announce the release of iPhone 5. If history is guide, Apple will release iOS 6 in conjunction with their new iPhone. So starting today, we are enabling the ability to test your Corona apps on iOS 6 Beta 4.
- Be enrolled in Apple’s iOS Developer Program (i.e. pay the $99 fee) and therefore abide by Apple’s NDA.
- Install XCode 4.5 Beta.
- Install iOS 6 Beta on your iPhone or iPad
- Corona daily build 900 or higher.
Starting in daily build 900, you’ll notice a special pull down menu in the iOS build dialog (see attached image).
Because the final version of iOS 6 is still in flux, we are disallowing distribution builds (ad hoc or store). This way, you don’t accidentally build and upload the wrong build. There’s also that darn Apple NDA, which means the builds are for your internal use only.
Faster build times (i.e. avoiding pngcrush)
The challenge: could we reduce build times, but also preserve the optimization (we want Corona apps to look the same as if you built them with XCode directly)?
We think we found a great solution. On developer builds (i.e. those using an “iPhone Developer” signing identity), we skip the optimization and just copy the PNGs. On distribution builds, we perform the pngcrush step as before.
The thinking was that you’re iterating when you do developer builds, so let’s help you iterate faster. When you’re ready to ship, you’ll be signing with “iPhone Distribution”, so we do the pngcrush step as before — you’ll deal with the slowdown, but you benefit from the standard PNG optimizations.
If you’re an Enterprise user, we are giving you the ability to skip the PNG optimization too. Just insert the following line at the top of the “Compile” build phase:
There’s more information on the API docs for build 900.
Incidentally, we’ve heard
that pngcrush optimization offers little benefit there are better alternatives to pngcrush that can significantly reduce png file size. We haven’t had time to benchmark, but if you have interesting stats, let us know!
UPDATE: For large projects, build times decrease by 10x, e.g. 20 minutes => 2 minutes!
Posted by Walter. Thanks for reading...