How can i include a custom ios framework inside the ios library created by the tool? #379
-
I have a custom ios framework (locally, private) which i include in a native ios app. It contains some ui components. I want the same framework, to export it to a react native library. So, i created one with this tool, but i can not figure out how i can include my framework inside the ios xcodeproj so that i can import in the ViewManager.swift file. Any tutorial somewhere? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Hey, it's possible. You need to edit your # Specify path to the framework
s.vendored_frameworks = "path/to/your_framework.xcframework" After you install the pods again, you can import the framework to your project. |
Beta Was this translation helpful? Give feedback.
-
Hey @atlj here i come again! Though, on another mac, if i try to build the react-native app, i get error saying that the
That's very weird because when i build the Any ideas? That's a blocker if i want to share my library with other people, as they will get the above error during build. |
Beta Was this translation helpful? Give feedback.
After all i had success! I had to copy the
my_framework.framework
on the same parent folder as the.podspec
file.Inside
.podspec
i had to import it like this:s.vendored_frameworks = "my_framework.framework"
Thanks @atlj for your hint & help! I think i understand a bit better how all these stuff are linked!