devuser27
devuser27

Reputation: 81

iOS app fails when running on device - "dyld: Library not loaded" "abort with payload"

I'm trying to run a test app on my device, from xcode project written in swift. The app runs perfectly fine on simulator but when I try to run it on my device (iPhone X) it's broken as soon as it opens. I looked around online but couldn't find any reference that helped me debug this issue by myself. Note that other test apps are working fine from this machine running on the same device, and this app is running well when installed from another mac (using the same code but with different identifier)

The output error mentioned: dyld: library not loaded ...

threads status:

enter image description here

Versions: Xcode - version 11.3.1 (11C504) macOS Catalina - 10.15.3 (19D76)

Any suggestions on how should I dig into this??

Upvotes: 0

Views: 721

Answers (1)

Lena Bru
Lena Bru

Reputation: 13947

you have a dynamic library that needs to be added to the binary build

click on your target - general

look for the part

enter image description here

Your library needs to be listed there to be loaded

Upvotes: 1

Related Questions