I\'m having a problem with some KeyChain code causing archives created via xcodebuild to crash when distributed as ad-hoc apps and run on a device. The problem
xcodebuild
I think this line is wrong:
[[KeychainItemWrapper alloc] initWithIdentifier:@"myapp" accessGroup:nil]
You will want to pass your access group name in there. It may or may not fix your problem, these things are a bit "sensitive".