Closed kiwikia closed 1 year ago
Thanks for raising the issue! You are right that the framework should be embedded. It is a historical leftover as we used to distribute our native SDK as a static library, instead of a dynamic one, hence there was no need to embed the framework and also it was common that the Cordova's plugins lib got re-compiled to a single static executable to reduce the runtime linking pressure.
I've fixed the plugin declaration in a new version, 2.0.2
so please kindly try it out and let me know. Your workaround should not be needed now.
Just btw, the embed flag can also be set in Xcode, in the Frameworks, Libraries, and Embedded Content
section of your app's target.
Thank you!
Thanks @c0mtru1se for the quick turn around! I can confirm all working as expected with the latest release =).
After installing the plugin (cordova plugins below):
And building for ios (we are running an ionic project), the framework isn't found and the application crashes with
Library not loaded: @rpath/SmartlookAnalytics.framework/SmartlookAnalytics
We tracked the problem down to the framework not being embedded in the project. Setting the
embed="true"
flag on the framework resolves the issue.As a workaround, we are running a hook after smartlook installation to resolve it as follows:
Question -> Is there a reason the embed flag is not set? How are others getting this to run without manually embedding the framework?