Thursday, October 27, 2011

How to Handle HTTP Headers in iOS4 and iOS5

One of several minor incompatibilities between iOS4 and iOS5 is the way how HTTP headers are reported. The difference is in the capitalization and white-space handling:
iOS4: @"Myapp-Sampleheader ";
iOS5: @"MyApp-SampleHeader";
Once you figure out this is the problem, the fix is quite easy. Here is a generic routine to handle both cases at the same time:

Monday, October 24, 2011

Invalid attempt to access ALAssetPrivate past the lifetime of its owning ALAssetsLibrary

Trying to upload hundreds of images from device, but application occasionally crashes with this error note:
invalid attempt to access ALAssetPrivate past the lifetime of its owning ALAssetsLibrary
Basically it means what it says. Library was closed before reading the image data was completed. As result upload failed due missing or too short data. ALAssetsLibrary Class Reference says:

Sunday, October 16, 2011

Cocoaheads Helsinki October 2011

Cocoaheads Helsinki meetup was last Thursday at MK&C office, rigth at central Helsinki tourist district. Good location, easy to access, international atmosphere even before you entered the office.

There was about 10 persons present and the whole meetup was quite informal. General techie smalltalk, comparing iOS5 update war stories, refreshments, presentations. Fun.

Saturday, October 15, 2011

New Fonts in iOS 5.0 - and Some Missing

Apple iOS 5.0 was released few days ago and installation was rather hard. It's still not complete, since I had 500+ apps and restore from iOS 4.3.5 backup was about a total failure. Enough of that, waiting for iOS 5.1 release rather soon.

Let's look at fonts. Yes, with pictures!

iOS 5.0 was a huge update in many ways and one of them is built-in font selection. For the first time ever, iPhone and iPad have exactly the same fonts!

Thursday, October 13, 2011

How to Update iPhone3GS to iOS5

Updating iPhone 3GS to iOS5 was not an easy thing to do:
  • Removed 6GB+ stuff from the device: apps, videos, books, music
  • Cleared 20GB free disk space at MacBook Pro
  • Installed all Mac OS updates released AFTER iTunes update
  • Reboot
  • Try to update for umpteenth time
That took about 3 hours on late Wednesday night and 2 hours on early Thursday morning with 5 hours sleep in between.

Pro tip: make sure you don't have any wake up alarms setup to tricker during update! It's e-x-t-r-e-m-e-l-y annoying to listen to the alarm, while not being able to shut it down. I had to skip Apple ID phase just to SHUT-THE-FC*K-UP clock alarm. Don't really care what did I screw up.

It was either that or introducing iPhone to my fine-tune hammer. Very close call (after all those hours wasted to fail with update).

Tuesday, October 11, 2011

FontType 1.0 Now Available in App Store

After lots of sleepless nights and countless redesings I am happy to tell that first of my three apps is finally available in App Store:

It's a small and nice "font viewer" application. Got several reasons to write it, so many that I want to list them:

Friday, October 7, 2011

Remembering Steve Jobs 1955 - 2011

One day after Steve Jobs died in cancer... What is there to say. How to find motivation to go on, how to get back in the zone. Where is the excitement and enthusiasm now?
We don’t get a chance to do that many things, and every one should be really excellent. Because this is our life.

Life is brief, and then you die, you know? And we’ve all chosen to do this with our lives. So it better be damn good. It better be worth it.
Steve Jobs
Thanx, Steve. For everything.

Tuesday, October 4, 2011

Application Failed Codesign Verification

Submission to App Store wasn't as easy as I thought in previous blog. Not really surprised, but this problem was tough to solve. Not tough as in hard to fix, but as hard to figure out:
Application failed codesign verification.  The signature was invalid, or it was not signed with an Apple submission certificate. (-19011)

Monday, October 3, 2011

Application Validation Problems

Tried all weekend to make a release, these were the last issues to be solved:
warning: Icon specified in the Info.plist not found under the top level app wrapper: Icon-SMall@2x.png (-19007)