Closed moygospadin closed 2 years ago
replace content in Bridging-header to this
in another files use this imports like upper also move bringing header to FrameProcessorPlugin folder (dont know helps it or not) also dont forget to check brinding header path also i off parallelize build in xcode then it works
One more update: main problem was, that i use use_framework, i commented it, and add to necessary pods :modular_headers => true, uncommented use_flipper!. And DONE!
This is a bad decision. For some projects, the use of use_framework is mandatory. Are there any solutions here?
@moygospadin Do you have any other solution instead of commenting use_framework, Please share this here if you have.
In case anyone is still looking at this, I have a solution. If you patch the VisionCamera package to create an empty VisionCamera.h file and reference in the podspec as in https://github.com/rodgomesc/vision-camera-code-scanner/blob/4dcfeabd3cd41564257e3ec1b0824f3a39b15014/.yarn/patches/react-native-vision-camera-https-95cda75d0b.patch, that fixes the compile error and the project works with use_framework. This patch is based on the newer V3 branch of react-native-vision-camera though so ymmv with the latest V2 release.
Found a solution
The problem is using this use_frameworks! in your PodFile most people are using use_frameworks! due to firebase v15+ requirement
so if you are using use_frameworks! for any reason remove it and use :module_headers => true instead for each library due to which you used use_frameworks! earlier
in case of firebase, after remover use_frameworks! you can add the following line at the end of Podfile
pod 'Firebase', :modular_headers => true pod 'FirebaseCore', :modular_headers => true pod 'FirebaseCoreInternal', :modular_headers => true pod 'GoogleUtilities', :modular_headers => true
you might need to turn off flipper too by commenting out this following line (for firebase, not sure about any other library) :flipper_configuration => flipper_config,
This should work fine. now you will be able to use your frame processors.
Hope that helps
For anyone reaching this comment, trying everything written before... remember to installreact-native-worklets-core
plugin and configure it in babel.
https://react-native-vision-camera.com/docs/guides/frame-processors#react-native-worklets-core
This was the culprit in my case.
What were you trying to do?
I trying to build my own frame process plugin. I have the following error - could not build module 'VisionCamera', Bridging-Header make like in example. Trying to set swift version to 5.2. Clean and rebuild all. Nothing helped
My Bridging-Header content
I have the following file structure
My package json
Reproduceable Code
No response
What happened instead?
Relevant log output
No response
Device
XCODE Version 13.3 (13E113)
VisionCamera Version
2.13.3
Additional information