Cross-posted here.
Learned this the hard way... if you upgrade your Xcode to the iPad beta (iphone_sdk_3.2_beta_with_xcode_3.2.2.dmg), you cannot compile iPhone projects in distribution mode, even if you set the target device to 3.0/3.1. I'm not 100% certain what build configuration flag is causing this to fail, but it compiles just fine in my other configurations and I can even run the non-distribution mode build on an emulator. In distro mode the build always craps out with 18 C++ errors (
similar to this). It's possible that the issue is also related to the fact that I recently migrated to a new macbook, but I had already reinstalled Xcode so I can't imagine that being the issue.
I just downgraded my Xcode to the latest non iPad version (iphone_sdk_3.1.3_with_xcode_3.2.1__snow_leopard__10m2003a) to confirm this, and was finally able to submit version 1.0.2 of Cool Curlings.