Simulator sometimes fails to launch game when running from Xcode

OS: macOS 15.2 (24C101)
Hardware: Apple M1 Studio

Often when launching my game from Xcode the simulator issues this message:

dlsym(0x76669820, CAReportingClientCreatePerformanceReporterID): symbol not found

Obviously I'm not using any CoreAudio APIs in my code, and I can't to figure out what the pattern is. It feels like a race condition, because it only happens about 25%-30% of the time. It does happen more often if there's no pdex.bin in the .pdx bundle (i.e. right after a clean).

My Xcode project is set up per the instructions (including setting ENABLE_USER_SCRIPT_SANDBOXING=NO) using makefiles. There's only one simple main.c, and there's no audio anywhere in my game (yet). I'm happy to share my little app with you, if it will help.

Oops. Turns out I needed to move the "make pdx" from a build step to a post-build action in the scheme.

Sorry for the noise.

2 Likes