dyld[2345]: Library not loaded: @rpath/frameworkname.framework/frameworkname

So I was trying to embed a framework to my project (Project1), and then import that project (Project1) to another project (Project2), when I tried to import the framework on one of my file it was doing fine and the build was succeded but when the app open on physical device it return these error:

dyld[2345]: Library not loaded: @rpath/frameworkName.framework/frameworkName  Referenced from: /private/var/containers/Bundle/Application/45BE4C38-1470-4B2D-97D2-CD9E678ED13B/App.app/Frameworks/Project1.framework/Project1  Reason: tried: '/usr/lib/swift/frameworkName.framework/frameworkName' (no such file), '/private/var/containers/Bundle/Application/45BE4C38-1470-4B2D-97D2-CD9E678ED13B/App.app/Frameworks/frameworkName.framework/frameworkName' (no such file)

Before those error I got another message like "Image not found" or "Invalid Provisioning" which I think I solve it because those message was gone but now there's only "No Such File" error

dyld[2345]: Library not loaded: @rpath/frameworkname.framework/frameworkname
 
 
Q