Adding xcframework as dependency to native modules
I've been trying to add a native xcframework library as a dependency to my iOS native modules. The iOS root application is missing the general tab in Xcode which is where one would as the framework dependency. I was able to successfully link an .aar library to my android native modules. Am I missing something while implementing in iOS or is it not supported?
I have the same question. I also managed to include a .aar on the Android side, but i can't figure it out on iOS...
That to the friends, to add the xcframework in the .podspec file that is in the root of the project you must add the line.
s.vendored_frameworks = 'ios/exmaple.xcframework'
you must keep the xcframework inside the "ios" folder that is in the root.
Thank you Pulnec. I did get it to work when adding the dependency as a pod in the root podspec though. First time a tried to add it as a pod in the podspec, it also installed to pod, but it seemed like the link between the my own module and the pod wasn't fully there. The second time i tried it, it worked just fine.
@nicklasbring, Excellent, can you leave an example here, of how you did it?