Breakpoints not resolving on Xcode 14 (Turn to outlines when app is run)

We are running into an issue where breakpoints are not resolving on Xcode 14 (The same break points on Xcode 13.4.1 are working fine). They change to an outline when we run our app

I have tried all the usual fixes

  1. Cleaned the build
  2. Cleaned Derived data
  3. Restarted Xcode
  4. Restarted the machine
  5. Re-cloned the repo to see if starting fresh helps

I have also tried

  1. Removing all symbol stripping
  2. Ensuring the DSYM is getting generated and is loaded in the debugger
  3. Removing all optimization options
  4. Tried the Xcode 14.1 beta

What's really strange is the break points will work occasionally and will work for a few runs and then stop working again. Does anyone have any suggestions?

Post not yet marked as solved Up vote post of Rajusa Down vote post of Rajusa
2.5k views
  • I am suffering the same problem on

    MacBook Pro M1Xcode Version 14.2 (14C18)
Add a Comment

Replies

I have the same problem, Xcode 14.2, Ventura 13.4, MacMini M1

Same problem with Xcode 15.1, MBP M2

I fixed this problem, just set GCC_GENERATE_DEBUGGING_SYMBOLS = YES

Ref: https://stackoverflow.com/a/75668788/8378840