Skip to content

Adding xcframework as dependency to native modules #255

Description

@Kahan

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?

Activity

  1. nicklasbring commented on Aug 9, 2022

    @nicklasbring

    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...

  2. pulnec commented on Aug 16, 2022

    @pulnec

    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.

  3. nicklasbring commented on Aug 23, 2022

    @nicklasbring

    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.

  4. pulnec commented on Aug 23, 2022

    @pulnec

    @nicklasbring, Excellent, can you leave an example here, of how you did it?

  5. locked and limited conversation to collaborators on Oct 14, 2022
  6. converted this issue into a discussion #292 on Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions