How can I start debugging a `dyld` error

How can I begin to debug why a library is not being loaded at compile time?

I feel like I’m a bit outside of my league here because I’ve never run into this type of error before. I’m getting a crash at run time when trying to run my project on the simulator (iOS).

I started seeing this after I added a package that I created. To troubleshoot I created a new project and imported the same newly created package and it worked with no problems. So I know the problem is not with the package itself. I have since deleted DerivedData multiple times to no avail.

I see this output in the console after the crash

Library not loaded: /usr/lib/swift/libLiveExecutionResultsLogger.dylib

Referenced from: <8832D1F6-D3B4-350E-AE16-2FC1D54612E9> /Users/…/Library/Developer/CoreSimulator/Devices/3C85B758-3216-40B4-B488-AA05BABEC9F3/data/Containers/Bundle/Application/CE6A73EB-3572-4285-9074-8B54FC2D3132/

Reason: tried: '/Users/…/Library/Developer/Xcode/DerivedData/…-gnmdkprcrvllgsfpsajpeqkvsbob/Build/Products/Release-iphonesimulator/libLiveExecutionResultsLogger.dylib' (no such file),

I don’t know where to begin to debug this so I don’t which output to provide to request help. Any help is appreciated, thanks!

For what it’s worth, libLiveExecutionResultsLogger is Playgrounds related. So to work around this issue you can comment out all import Playgrounds.

I'm getting this in both Swift packages and Xcode projects, even after entirely reinstalling both Swift and Xcode. I'm not aware of a proper solution. I've filed a feedback (FB18028542) early during the betas and got some follow up questions, but unfortunately work on it seems to have been interrupted at some point.

1 Like

So grateful for this insight. I spent an hour or so debugging this.