开发者

Xcode 4 woes. Why does a build for device immediately crash on launch?

I am going nuts trying to figure out what Xcode 4 is complaining about when trying to build for device. This is solid, working code that builds just fine thank you under Xcode 3.2

Under Xcode 4. My code compiles, builds, installs on the device, then imme开发者_C百科diately crashes. Oddly, launching the app directly on the device works fine. WTF !?!

Here is the completely unhelpful output from Xcode 4:

Xcode 4 build woes http://dl.dropbox.com/u/3358773/stackoverflow/xcode-woes.png.

Note: I am seeing this problem with most of my working code since moving to Xcode 4.

Can someone please help me understand what Xcode 4 wants me to do here?

Thanks,

Doug


That error log seems to suggest that your debugging symbols for SDK 4.2 may be missing somehow. Do you have files under /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2/Symbols/System/Library/Frameworks/ ? If not, you might want to try reinstalling Xcode 4 and the iOS SDK.


Just a guess--but try disabling all your breakpoints (or deleting them) and see what happens. (The error message above makes me believe your problem is related in an invalid breakpoint. Perhaps Xcode got into an inconsistent state?)


Upgrading from xcode3.x to xcode4 can often lead to various problems such as this one. I had similar issues when I upgraded. Your best bet, by far, is to do a complete uninstall of xcode and reinstall clean. After doing a non-upgrade install, all my problems disappeared.

From the command line, this will completely remove your xcode:

sudo /Developer/Library/uninstall-devtools --mode=all
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜