So I've been working on an app and everything has been going up and down untill I finally got it running. After I archived it to export the .ipa file and sent it to another team member the app suddenly started crashing and giving the same error message. I went back to the pre-archive version and now it's crashing with the same error message.
I've been googling for a while now and couldn't find anything that can help me fix this.
Please note that the app was working well and I tested it on my iPhone 8 as well as all the simulators.
The error message is
dyld: Library not loaded: @rpath/FontAwesome_swift.framework/FontAwesome_swift
Referenced from: /Users/AmrAhmed/Library/Developer/CoreSimulator/Devices/DE180FC4-6CAD-43E7-BB60-6135A8C2BD3E/data/Containers/Bundle/Application/51BFC0FA-5FAE-44F8-97C3-730F7D1A69A5/Hadi.app/Hadi
Reason: image not found
(lldb)
I'm not exaclty looking for someone to post the solution ready to be tested so I'd be appreciated if you could explain the causes of such errors.
Please take into consideration that I'm using Xcode 9.3.1 and cocoapods to manage SDKs.
Also keep in mind that the crashing app is the same one that I tested on several platforms.
Thanks