简体   繁体   中英

Xcode 4.2 with iOS 5.1 on Snow Leopard - breakpoints not working

I followed the instructions in this post Is it possible to get the iOS 5.1 SDK for Xcode 4.2 on Snow Leopard? to get my iOS 5.1 device working with Xcode 4.2. All is working except my breakpoints are not being hit when debugging. Anyone come across this and know a fix.

Regards

也许不是您要找的答案,但是我也遇到了ios 5.1的问题,我刚刚下载了新的xcode(我认为是4.3.1),并且一切正常,旧项目没有问题。

我尝试了上述所有操作,但仍然没有任何效果,然后在打开Mac并打开xcode的情况下,终于重新启动了设备,断点开始起作用。

I've used the same installation method you mention to get 5.1 and 6.0.1 SDKs onto Snow Leopard. (Note that just installing the SDKs doesn't include the simulator, so it won't support 5.1+.)

I have Snow Leopard 10.6.8, and breakpoints fire fine, both on my updated phone connected via cable and in the outdated simulator. Should work fine on 10.6.7 also.

I would recommend that you create a new project and set a breakpoint. If that works, you are expecting the other project to reach a breakpoint but it doesn't, either because of the code or an XCode setting.

Are breakpoints enabled? Check the button in the toolbar, or Product -> Debug -> Activate Breakpoints. We all overlook simple things sometimes so I'm just checking!

I had also the same problem. I tried changing the debugger by following VokiLaM's answer to another SO question related to this. Worked like a charm. Hope it helps.

Marco

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM