I have a swift framework integrated with my project and it works fine on a real device no problem at all.
But when I try to run the the same project on simulator then I am getting the issue.
dyld: Library not loaded: @rpath/libswiftCore.dylib
Referenced from: /Users/Shankar/Library/Developer/CoreSimulator/Devices/78BF3C2C-ECD8-408E-8CBD-2306AE4B2351/data/Containers/Bundle/Application/B28FB671-F67D-4927-8E55-AFB569B44222/Mytest.app/Frameworks/SKDarwin.framework/SKDarwin
Reason: image not found
I tried the solutions available on stackoverflow that were suggested for this error but none fixes the issue.
It could be because the error happens only on simulator.
Any suggestions to fix the problem is appreciated
Note:
This is not duplicate of the questions that were already asked in #SO please read the question details to know how its different from all those.
This question is defintey different as it only happens on simulator and non of the solution that has been mentioned works.