Dlopen failure with OnlineSubsystemNull on Mac UE-5.0 Source Build

As I searched for help on this today with no luck, I’d like to mention here that in Project fails to load because of the plugin with third party library (macOS) it is mentioned that the error used to appear in the logs (~/Library/Logs → Unreal Engine → MyProjectEditor → MyProject.log)
But for me it does not! (UE5.4)
So for people looking for more detailed help, here is what I had to do:

  1. launch in the debugger (in a console: lldb /Users/Shared/Epic\ Games/UE_5.4/Engine/Binaries/Mac/UnrealEditor.app/Contents/MacOS/UnrealEditor)
  2. break on dlopen
  3. run until the error shows up (can take some time… 135 calls before my module loaded)
  4. check the breakpoint hit count (“breakpoint list”)
  5. delete and re-create the dlopen breakpoint with a condition on the hitcount (a couple hits less to be on the safe side): br dlopen then br modify -i 135
  6. configure lldb with setting set escape-non-printables false to get the full error string
  7. run until the dlopen call that fails, let it execute but no further!
  8. finally you get to see the error using print (char*)dlerror()

hth,