Sunday, June 12, 2011

[iOS5] Caution!

I had Xcode 4.0.2 installed in /Developer and Xcode 4.2 (beta) installed in /Beta. I could work and run both just fine.

I had to submit an update to an existing app (WARP gce was approved!). When I built to test the app on my device Xcode 4.0.2 gave me a signing error, something about the code_wrapper. So I tried just re-installing Xcode 4.0.2 and the error was fixed (most likely because Xcode 4.0.2 wrote-over whatever tools the beta installed). I did not try and run the beta, as I was still focused on getting the update submitted. So, archived and then submitted to the store and Xcode reported a confirmation but a few minutes later the App Store rejected the binary. Here is the verbiage:
Invalid Signature - Make sure you have signed your application with a distribution certificate, not an ad hoc certificate or a development certificate. Verify that the code signing settings in Xcode are correct at the target level (which override any values at the project level). Additionally, make sure the bundle you are uploading was built using a Release target in Xcode, not a Simulator target. If you are certain your code signing settings are correct, choose "Clean All" in Xcode, delete the "build" directory in the Finder, and rebuild your release target.

In addition if you thought you'd like to try and check out iCloud and updated your profiles, you cannot submit to the store. Remove the enable for iCloud setting and update your profiles to fix. Here is the error I got back for that error:
Invalid Code Signing Entitlements - Your application bundle's signature contains ubiquity code signing entitlements that are not supported.
Specifically, value "( xxxxxxxxxx.* )" for key "com.apple.developer.ubiquity-container-identifiers" in is not supported.

So in summary: you can run both copies of Xcode on your Mac but if you need to submit to the store you may need to remove the beta and reinstall 4.0.2.

If I find anything more about this I will update this post. There are a few discussions on the Dev forums I'm watching and participating in.
:-)

Monday, June 6, 2011

iOS 5.0 Pre-Keynote

Well we should get the beta for iOS 5.0 today. Here's what I think:

iOS 5.0 will install on an iPod 4th gen or iPhone or iPad. So yeah it will exclude the 3rd gen iPod and iPhone 3GS.

This will cause the usual "I'm not going to developer for iOS anymore" blog posts and developers will take their ball and go (home) to Android.

However, iOS 5.0 will have such a compelling feature set that most developers (me included) will embrace it full on.

Can't wait for 10:30 or 11:00 AM to roll around.

PS DO NOT INSTALL iOS 5.0 beta on your main device unless you can deal with poor battery life and flaky performance! Let the "How do I remove iOS 5" posts begin.

Post-Keynote update: Nearly an epic fail since iOS 5.0 will install on ALL iOS 4.3 devices.

Friday, June 3, 2011

Speed up Xcode 4

Love it or hate it... Xcode 4 is here to stay...

Browsing the Apple forums I happened upon a post with the most excellent comment from crisB regarding speeding up Xcode 4.

My Xcode 4 was PAINFULLY slow...

Basically you need to remove the workspace file from the contents of your project.

Here's a before and after shot. My project's file was 50MB's and my Xcode 4 was running EXTREMELY slooooooow; I would have the spinning beach ball for several MINUTES!!





So this Automator workflow / droplet basically deletes the "project.xcworkspace" from the file you select or drop.

DOWNLOAD HERE

Enjoy...

PS What the heck happened to May!!!