Xcode 6 ignoring breakpoints – Swift
Xcode 6 is completely ignoring my breakpoints. I saw a post here from 2008, but the answers are outdated, and don’t seem to work.
This is happening only with projects that I start. All my downloaded open source projects work perfectly fine, as well as projects I started a few months ago.
This is what I get when I create a brand new project and set a breakpoint in
- How to debug dylib with Xcode?
- How do you perform wireless debugging in Xcode 9 with iOS 11, Apple TV 4K, etc?
- Using atos to determine crashed method name with dSYM
- Test iOS app on device without apple developer program or jailbreak
- iPhone Dev: Xcode debugger does not stop on breakpoints
- Thread 1: signal SIGABRT error when using IBActions?
4 Solutions Collect From Internet About “Xcode 6 ignoring breakpoints – Swift”
After trying many different things, I ran
defaults delete com.apple.dt.Xcode
This reset my Xcode settings. Now when I create a new project, breakpoints work fine.
I realized that the problem happened when I added Cocoapods to the project. B/c right after I ran
pod install, breakpoints stopped working. I’m not sure why.
Hope this helps anyone with the same problem
I had a similar issue when I added a target to my project. Breakpoints placed in that target were ignored.
The solution was to set “Debug Information Format” in the new target’s build settings to “DWARF with dysm”
In XCode 7.1 it defaulted to DWARF
Close Xcode and remove the derived data and then reopen Xcode it will work
There can be various culprits for this, a common one being setting the build scheme to Release instead of Debug.
For me it was the Debug Optimization Level set to -O0 in my target’s build settings. Changing it to “Fast [-O, O1]” makes Xcode breakpoint-respectful again.
There is an interesting post about it here:
- Disable Nagle's algorithm for NSOutputStream
- iOS like web UI
- Why is -didDeselectRowAtIndexPath not being called?
- Cannot access property of Swift type from Objective-C
- Swift Compiler Error: Use of unresolved identifier 'name'
- Detecting touches on a UISlider?
- KVO working once in Swift
- Can the iPhone4 record from both front and rear-facing camera at the same time?
- Get width of a resized image after UIViewContentModeScaleAspectFit
- Different font size for different devices in Xcode 6
- Swift – Binary Operator == cannot be applied to two ] operands
- How to switch to different Storyboard for iPhone 5?
- Pass data between UITabBarController views
- Optimize loading of many images on iPad
- XCode 'Build and Archive' menu item disabled