Xcode 6 ignores breakpoints - Swift
Xcode 6 completely ignores my breakpoints. I've seen the post here since 2008 but the answers are out of date and don't seem to work.
EDIT:
This only happens with projects that I run. All of my uploaded open source projects are working fine, as well as projects that I started a few months ago.
UPDATE:
This is what I get when I create a new project and set a breakpoint at viewDidLoad
source to share
After trying many different things, I ran
defaults delete com.apple.dt.Xcode
This reset my Xcode preferences. Now when I create a new project the breakpoints are working fine.
I realized that the problem came up when I added Cocoapods to the project. B / c immediately after starting pod install
, breakpoints stopped working. I do not know why.
Hope this helps anyone with the same problem.
source to share
There can be different culprits for this, usually setting the Release build scheme instead of Debug.
For me it was the Debug optimization level set to -O0 in my target build settings. Changing it to "Swift [-O, O1]" makes Xcode's breakpoint repeat again.
There is an interesting post here:
http://blog.credland.net/2014/03/xcode-debugger-why-do-you-stop-working.html
source to share