Sorry for the delay responding here; this got lost in my to-do list )-:
I set up a test for this today:
-
I’m using Xcode 15.0 running on macOS 13.6.1.
-
I’m targeting iOS 17.0 and 16.7.2.
-
I create a new test project from the iOS > App template.
-
I set “Wait for the executable to be launched” in the scheme editor. Without that, everything works just fine.
For each test:
-
I set a breakpoint in application(_:didFinishLaunchingWithOptions:)
.
-
Then selected the target run destination.
-
I chose Product > Run.
-
And launched the app from the Home screen on iOS.
On iOS 16.7.2 this worked as expected. I stopped at the breakpoint.
On iOS 17.0 it failed as you described: I didn’t stop at the breakpoint. Curiously, when I paused the app Xcode didn’t show the breakpoint as unresolved. However, it clearly is unresolved because LLDB does not show any locations for it:
(lldb) break list
Current breakpoints:
1: file = '/Users/quinn/Desktop/Test739914/Test739914/AppDelegate.swift', line = 17, exact_match = 0, locations = 0 (pending)
Something has gone very wrong with symbols, because none of the backtraces in the Debug navigator show any symbols. When I tried to investigate that I saw this:
(lldb) image list
error: the target has no associated executable images
That’s bad. It’s not just a question of Xcode not being able to find the symbols for your program; it can’t even find the Mach-O images in your process.
Unfortunately I don’t have any great insight into this. I recommend that you retest with all the latest beta stuff. If that still fails, please file a bug and post your bug number, just for the record.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"