I'm working with the Expo Modules API and trying to integrate a .framework file into my Expo module. However, I'm new to native development and struggling to understand the documentation.
My questions are:
modules
folder or in the ios
folder, which is generated after running npx expo run:ios
?I've tried both locations, but I keep running into errors like:
"Module not found"
"File not found"
"{SDKName} not found"
Does anyone have experience with this setup or know how to resolve these issues?
Any help is appreciated!
Reference: Expo Modules API – Third-Party Library
modules/ios/Frameworks
.podspec
under modules/ios
to include your framework -> s.vendored_frameworks = 'Frameworks/YourFramework.framework'
.podspec
-> s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'SWIFT_COMPILATION_MODE' => 'wholemodule' }
{Project-Name}-Brdiging-Header.h
under {Project-Name}/{Project-name}
pod install
again after adding your framework to the podspecIn my case I also experienced a weird issue with the Frameworks header files not being found explained here.
Hopefully this helps you. I myself struggled a lot with this and spent hours trying to make it work. Really hoping expo is updating their documentation to give us a more detailed explanation.