I migrated an on-going project from Xcode 3 to Xcode 4. The ad-hoc build by LLVM 2.0 compiler crashes on iPod Touch 2G (iOS 4.2.1), but works well on iPad (iOS 4.3). This never happened prior migrating to Xcode 4.
When I tested with debug configuration on device, no crash happened. When I tested with ad-hoc configuration (duplicated from release), it'll crash. When I switch compiler version in the ad-hoc configuration from "LLVM 2.0" to "LLVM GCC4.2" or "GCC 4.2", no crash.
Therefore, I'm using "LLVM GCC 4.2" for ad-hoc and release configuration as an workaround. But I want to know what's the possible causes of crash.
I didn't post the crash report because it say nothing but crash on thread 0, no stack flow.