Thursday, December 1, 2011

Xcode 4.2 and iOS 4.2.1

Been getting reports of users with second generation iPod Touch running iOS 4.2.1 having layout and image issues. An Apple employee posted:

The most recent LLVM Compiler has a bug wherein armv6 code that uses CGPoint and CGRect structs can be optimized incorrectly. As a workaround, try compiling your armv6 code with "Compile for Thumb" set to No (or add -mno-thumb to your Other Compiler Flags).

I think this is how you turn off thumb using project settings:


I'll give this a shot and report back.

Update: I got a hold of an iPod Touch 2g running iOS 4.2.1 and found that the change to the optimization setting does indeed fix the issue. Backing out the change reproduced the errors. Whew.

1 comment: