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
3rd party static libraries: Example with Google Maps SDK for iOS #141
Comments
It looks like this example repo was removed. Any other examples available on how to add a static library through a nativescript plugin? |
@vijaysharm Check out the
|
Thanks @ivanbuhov, I'll take a look at the link. do i need to include the module map file as well? |
@vijaysharm No. The NativeScript CLI will generate default on which most of the cases works out of the box. |
Thanks for your help @ivanbuhov, this worked in-so-far as I was able to see my iOS library get built as part of the app. I ran into compilation failures because the static libraries has dependencies on AVFoundation and SystemConfiguration. I edited my build.xcconfig to include the libraries. This helped pass the compilation phase, but wound up crashing at Runtime because it was not able to resolve the class in the header. I replaced my static library with a framework, and this seems to work, however, this isn't ideal for me, but will have to do in the interim. I'd much rather the static library worked. I may have to revisit this another time, but I wanted to thank you for your help! |
Can you be more specific on this? Do you receive an error? You can instruct the metadata generator to generate yaml files or TS declarations in order to verify that metadata is generated for the class in question. Therefore, we will know if the problem is in the metadata generator. |
is there any sample for this work? |
No description provided.
The text was updated successfully, but these errors were encountered: