SFHFKeychainUtils with LLVM (Xcode 3.2.4/iOS 4.1)

While building with Justin Williams's excellent SFHFKeychainUtils (which makes it easy as pie to work with Keychain on iOS) with Xcode 3.2.4/iOS 4.1 using the LLVM compiler, I got a list of 20-or-so errors. A quick Google search revealed a Stack Overflow thread that appeared to be related in which the prolific Mr. Ben Gottlieb suggests removing

any #ifdefs that refer to TARGET_ IPHONE_SIMULATOR

Lo and behold, doing that fixed the errors I was getting too.

Here are my updated SHFHKeychainUtils class (SFHFKeychainUtils.zip, 5KB) in case you're having the same issue.

Comments