Debug Failed in Xcode Simulator

I can‘t use breakpoints on the simulator after updating Xcode and the simulator. I can use breakpoints on a physical iPhone. I tired to download other iOS simulator version, but still not working. Both SwiftUI and UIKit not working.

Xcode version: 16.2

SDK version: 18.2 (22C146)

Simulator version: 18.3.1 (22D8075)

Mac OS version: 15.4 Beta

Couldn't find the Objective-C runtime library in loaded images.
Message from debugger: The LLDB RPC server has crashed. You may need to manually terminate your process. The crash log is located in ~/Library/Logs/DiagnosticReports and has a prefix 'lldb-rpc-server'. Please file a bug and attach the most recent crash log.
Answered by zacJI in 827624022

I upgraded my system to 15.4 beta2 today and the problem was solved.

Thanks for the post, it seems like you are running a beta version of macOS. Can you please post the crash report from lldb?

With that file, may I ask you to submit a bug?

Once you open the bug report, please post the FB number here for my reference.

If you have any questions about filing a bug report, take a look at Bug Reporting: How and Why?

Albert Pascual
  Worldwide Developer Relations.

Having the same issue. I filled feedback 4 day ago on this. FB16608358

Same issue for me since the latest updates to Sequoia 15.4 and 16.2. Whenever I attach to a Simulator and try to view any variable, the LLDB RPC server crashes immediately. FB16682372

Debugging physical devices still seems to work fine.

Accepted Answer

I upgraded my system to 15.4 beta2 today and the problem was solved.

Issue persists for me after updating to Sequoia 15.4 Beta 2, Xcode 16.2. I tried deleting all simulators and this did not help.

same for me, on 15.4 Beta (24E5222f)

(converted to TXT)

Running into the same thing. Am no longer able to place breakpoints in any project:

Couldn't find the Objective-C runtime library in loaded images. Message from debugger: The LLDB RPC server has crashed. You may need to manually terminate your process. The crash log is located in ~/Library/Logs/DiagnosticReports and has a prefix 'lldb-rpc-server'. Please file a bug and attach the most recent crash log.

Xcode Version 16.2 (16C5032a)

macOS 15.4 Beta (24E5238a)

I tried reformatting my machine in case I'd messed something up, but with a clean install of Xcode this is still happening.

FB16883116 submitted with several ips crashes.

Having the exact same issue on the latest version

macOS 15.4 Beta (24E5238a)

Couldn't find the Objective-C runtime library in loaded images.
Message from debugger: The LLDB RPC server has crashed. You may need to manually terminate your process. The crash log is located in ~/Library/Logs/DiagnosticReports and has a prefix 'lldb-rpc-server'. Please file a bug and attach the most recent crash log.

Note: It doesn't crash on breakpoints. It crashes when

  • Inspecting with po
  • Inspecting on the left panel in the Debug Area. If you disable the left panel, you can step through.
  • Enabling Environment Overrides

The crash is still here with macOS 15.4 RC2 (24E247). Xcode Version 16.2 (16C5032a).

For me it crashes when debugger is about to start.

Xcode 16.3 contains compatibility improvements for macOS 15.4. Do you still see the crash and/or the warning after updating Xcode?

For the record, the final release macOS 15.4 (24E248) and Xcode 16.2 still crashes debugger.

I am also seeing this issue on Xcode 16.3 and macOS 15.4

I have the same issue, macos 15.4 and xcode 16.2

I cannot build my project with xcode 16.3 because it gives me "ambiguous use of " errors for RxSwift methods (found in RxSwift and RxRelay), so it would be nice to have a solution for xcode16.2

Also experiencing this:

  • macOS 15.4
  • Xcode 16.3 (16E140, installed as RC2)
  • iOS 16.3.1 Simulator (16.4 is affected by URLSession bugs)

Debugging ability is sporadic, plus, I get a popup dialog from Finder(?) that says "The file can’t be found." on every run of the app.

I've made sure the Xcode 16.3 is the selected Xcode version (I also have 16.2 installed) and have restarted Xcode twice. I have not restarted macOS since upgrading to 15.4.

Updating to Version 16.3 (16E140) seems to have solved the issue for me.

Xcode 16.3 on macOS 15.4 still crashes the debugger. In different situations, but it crashes in the same places. eg. can't debug SwiftUI on iOS simulator.

+1 for this. (FB17093798) We've tried all sorts of non-standard workarounds (LLDB init settings), swapping lldb-rpc-server versions. All to no avail.

Don't forget to boost the initial post here. Apple does see well bosted issues quicker.

Resolved by restarting the Mac(15.4 (24E248)), updating Xcode 16.2 to 16.3 and with new simulator on iOS 18.4 runs well.

I'm finding good success with the following:

echo "settings set plugin.process.gdb-remote.packet-timeout 300" > ~/.lldbinit

This is on Sequoia with XC 16.3 (16E140) running an iPhone 16 Pro simulator (18.4)

On my M1/64GB laptop, it is unmercifully slow, but I can debug and "work" with things w/o having the debugger crash and disconnect.

Same issue here after I updated from macOS 15.3 to 15.4 and Xcode 16.2 to 16.3

Message from debugger: The LLDB RPC server has crashed. You may need to manually terminate your process. The crash log is located in ~/Library/Logs/DiagnosticReports and has a prefix 'lldb-rpc-server'. Please file a bug and attach the most recent crash log. Couldn't find the Objective-C runtime library in loaded images.

This error never occurred on my local development machine before the upgrade!

This is particularly annoying because debugging is no longer possible in this state and breakpoints no longer work.

This is also the case for me. Everything ran great with Xcode 16.0 on Sequoia 15.2, breakpoints in the simulator and all.

I updated one of my machines to 15.4 and breakpoints no longer work, getting the message Couldn't find the Objective-C runtime library in loaded images and the debugger crashes.

Not able to update to 16.3 at the moment.

The issue for me was a Simulator that would not run on Xcode 16.3 after upgrading to Sequoia 15.4. Restart solved this.

I have the same issue, Xcode : Version 16.2 (16C5032a) Simulator : 18.3

Message from debugger: The LLDB RPC server has crashed. You may need to manually terminate your process. The crash log is located in ~/Library/Logs/DiagnosticReports and has a prefix 'lldb-rpc-server'. Please file a bug and attach the most recent crash log.
Debug Failed in Xcode Simulator
 
 
Q