App gets crashed as soon as we run it once we add library using spm
harish-suthar opened this issue · 7 comments
Please open the stack trace. As it is, I can’t really see what is going on.
@LeoNatan Hope this one works with logs?
dyld[14912]: Library not loaded: '@rpath/LNPopupUI.framework/LNPopupUI'
Referenced from: '/private/var/containers/Bundle/Application/1895041F-0448-4B0E-8F0F-7E40DCD79E60/DemoApp.app/DemoApp.debug.dylib'
Reason: tried: '/usr/lib/swift/LNPopupUI.framework/LNPopupUI' (no such file), '/private/var/containers/Bundle/Application/1895041F-0448-4B0E-8F0F-7E40DCD79E60/DemoApp.app/Frameworks/LNPopupUI.framework/LNPopupUI' (no such file), '/private/var/containers/Bundle/Application/1895041F-0448-4B0E-8F0F-7E40DCD79E60/DemoApp.app/Frameworks/LNPopupUI.framework/LNPopupUI' (no such file), '/private/var/containers/Bundle/Application/1895041F-0448-4B0E-8F0F-7E40DCD79E60/DemoApp.app/LNPopupUI.framework/LNPopupUI' (no such file), '/usr/lib/swift/LNPopupUI.framework/LNPopupUI' (no such file), '/private/var/containers/Bundle/Application/1895041F-0448-4B0E-8F0F-7E40DCD79E60/DemoApp.app/Frameworks/LNPopupUI.framework/LNPopupUI' (no such file), '/private/var/containers/Bundle/Application/1895041F-0448-4B0E-8F0F-7E40DCD79E60/DemoApp.app/Frameworks/LNPopupUI.framework/LNPopupUI' (no such file), '/private/var/containers/Bundle/Application/1895041F-0448-4B0E-8F0F-7E40DCD79E60/DemoApp.app/LNPopupUI.framework/LNPopupUI' (no such file), '/usr/lib/swift/LNPopupUI.framework/LNPopupUI' (no such file), '/private/var/containers/Bundle/Application/1895041F-0448-4B0E-8F0F-7E40DCD79E60/DemoApp.app/Frameworks/LNPopupUI.framework/LNPopupUI' (no such file), '/private/var/containers/Bundle/Application/1895041F-0448-4B0E-8F0F-7E40DCD79E60/DemoApp.app/Frameworks/LNPopupUI.framework/LNPopupUI' (no such file), '/System/Library/Frameworks/LNPopupUI.framework/LNPopupUI' (no such file)
@LeoNatan Also one weird thing I have noticed is framework is not visible in this dialog as well.
Looks like you incorrectly added to your project.
@LeoNatan I added it correctly but once I got app crash I tried to re add it and that's when this popup showed up.
It seems like you are trying to load the framework from a dylib. I don’t know what you are trying to achieve, but obviously not correct, as your app is crashing on launch.
If you must load it from a dylib, use the static variant of the framework.