-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not work when importing as framework (use_frameworks!) #46
Comments
It seems that you didn't install nat plugin correctly, Can you provide your |
Hi! I did install the plugin correctly and it does work when I don't add
the problem is that I need to add need
because my project also depends on a swift lib. |
Ok, I got it. But I think this is a issue cause by weex plugin loader, to solve this problem, maybe you can try to set the library targets manually in Xcode. |
@acathur you mean like add them without cocoapods? which library? |
I got same problem, You can consider not using WeexPluginLoader,or support !use_framework |
Hi!
I want to use natjs libs but importing them as a framework (i.e. adding
use_framewoks!
in my Podfile). I need this because I am also using a swift library and it is not possible to import a swift static lib and use it in ObjC(*).I am testing with the device info plugin. To reproduce the issue, just add natjs and
nat-device-info
to a new project, and adduse_framewoks!
inplatforms/ios/Podfile
. The project compiles, but then I get the runtime js errorTypeError: undefined is not a function (near '...device.info...'
. Withoutuse_framewoks!
, it works.Is there a way to make natjs work with
use_framewoks!
?Thanks!
(*)- Actually, I found this workaround but seems too much work or most likely it will not work.
The text was updated successfully, but these errors were encountered: