-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Build 'react-native-vision-camera' failed in v0.68.2 #1126
Comments
Im having the same issue 🙏 |
I have the same issue in RN 0.66.1. Since i upgraded RN to version 69 and because of other packages incompatibility i downgraded again to my previous version 0.66.1 |
Same issue |
Guys, I managed to find a solution. When I implemented firebase into my project, it requested from me to have After doing this, I didn't had any errors except some glog issue, so I had to add this in Podfile next to pods: The app is finally working now! |
When I did that FirebaseStore gave error for me even with custom headers :/. Clean build folder Pods and re-instaal |
Could you write your error here? |
Worked for me also. Thanks 👍🏻 |
What a lovely solution. I've been struggling with this for nearly a day! Thank you. |
Hello Rahul, Could you kindly post your PodFile? I am attempting your solution, however, after removing Edit I had to place these two lines first in the Podfile Snippet
Thanks in advance |
I had the same issue, fixed by upgrade to the latest React Native verison as suggested in #1159 |
Can you please share your PodFile? I have the same issue with Firebase installed. Followed the setup example by @mikehardy https://github.com/mikehardy/rnfbdemo/blob/main/make-demo.sh . The app was ok, but Im not able to run the app anymore with Vision Camera in iOS |
It appears that react-native-vision-camera may not work with Attempting to work around the issue by removing @mrousavy have you tried building any compile-test rig for react-native-vision-camera with |
@mikehardy thank you for the quick reply. Do you suggest any workaround for a specific library (i.e.: VisionCamera) to skip Below is my Podfile:
I tried:
|
Sorry, I do not propose workarounds to |
After bunch of debugging, I found out use_frameworks is also causing iOS runtime crash " It seems even if the build succeeds (I'm on RN 0.69, without flipper & without hermes), use_frameworks usage required by react-native-firebase@15 will cause issues in runtime. I also tried to set the related packages to be static in the podfile, but it did not help. |
@mrousavy not sure if you are aware of the use_frameworks issue or not? I wish I could wave a magic wand and remove the requirement for use_frameworks in react-native-firebase but I cannot. Would be great if this package supported it - usually it's just header + linkage location differences that need resolving |
any news here? |
Is this issue resolved? |
@bglgwyng I saw it closed and looked for anything in recent commits that would indicate a change had been made that would effect it. I did not see anything so I was surprised it was closed, myself. But I'm not a maintainer here so I don't really know. I think it is likely still an issue. |
I tried a very similar workaround here https://github.com/ICoi/VisionCameraExample/blob/main/ios/Podfile#L10 with what @krisidmisso suggested. The build succeded, but I got the following error message
So I commented frame processor things in the code and the app worked fine. If migration from static to dynamic library is a hard work, then to enhance this workaround to work well with frame processor seems the best option for now. |
After installing Firebase (requiring to add @bglgwyng Are you saying you got React Native Vision Camera + Firebase to work together? You just commented yesterday, but your link is already 404. Can you please post your workaround? @krisidmisso What do I need to change in my Podfile to get React Native Vision Camera to work with Firebase? |
@hb-webdev Sorry. I shared a private one. You can see this one https://github.com/bglgwyng/VisionCameraExample. I haven't tested with firebase yet. I think I'll do it today. |
yea RNReanimated pod is the issue here, it can't be used with frameworks afaik - maybe there's a workaround |
Oh interesting! Is there something specific - information-wise - that we could package up and chat with software-mansion about? They are certainly on the "amazing maintainers" list - perhaps they are unaware? In my experience with an app that does use reanimated (raect-navigation depends on it transitively, and I use a tabbed navigator that does animate) reanimated does work with use_frameworks, so maybe it is just some section of it since parts of it do work? So perhaps that diagnosis is not accurate either, perhaps the issue is still here somehow? |
https://github.com/bglgwyng/FirebaseExample I tried firebase + vision camera + frame processor here. It works fine. Firestore client is ok and the camera is too. |
Nice! I see this block, doing the thing you mention: pre_install do |installer|
installer.pod_targets.each do |pod|
if pod.name.eql?('vision-camera-code-scanner') || pod.name.eql?('VisionCamera') || pod.name.eql?('RNReanimated')
def pod.build_type
Pod::BuildType.static_library
end
end
end
end Could be similar to our workaround in react-native-firebase here, though they look a little different: if defined?($RNFirebaseAsStaticFramework)
Pod::UI.puts "#{s.name}: Using overridden static_framework value of '#{$RNFirebaseAsStaticFramework}'"
s.static_framework = $RNFirebaseAsStaticFramework
else
s.static_framework = false
end It is exactly the same as the workaround (which also works) documented in react-native-permissions: So...possibly could be solved in podspec here (somehow, though not aware of an elegant way yet) or could be a documentation solution similar to react-native-permissions (though there is a little issue tracker traffic related to it when people aren't aware)... |
@hb-webdev thanks to @bglgwyng and @mikehardy I was able to run my application with Firebae and Camera libs today.
Note the long condition:
Replace it with packages of your app that have issues with Hope this helps. |
@krisidmisso, Thanks Bro, your podfile example help me to make build sucessfull, i lost any hours with this. |
What were you trying to do?
I get the build error in iOS, and still can't resolve it.
Things I have done
I deleted my node_modules folder
rm -rf package-lock.json && rm -rf yarn.lock && rm -rf node_modules
rm -rf ios/Podfile.lock && rm -rf ios/Pods
yarn
cd ios && pod repo update && pod update && pod install
Reproduceable Code
What happened instead?
Build failed
Relevant log output
No response
Device
iPhone 8 (iOS 14.3)
VisionCamera Version
2.13.5
Additional information
The text was updated successfully, but these errors were encountered: