You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RN Vision Camera version: "react-native-vision-camera": "^4.6.3",
I'm using expo-devlauncher and this setup in app.config.ts:
[
'react-native-vision-camera',
{
enableCodeScanner: true,
cameraPermissionText:
'We need access to your camera for scanning barcodes and taking pictures of your drop-offs.',
},
],
I've also tried adding these to expo-build-properties (also tried without):
I'm using the branch which has TextRecognition set to 6.0.0, but I don't think that is related to this error (it was necessary for getting this far in the build).
Any ideas about how I can resolve this?
The text was updated successfully, but these errors were encountered:
I was having a similar issue. In my case, it was related to the use_frameworks! Podfile requirement for Firebase. The fix is here: rodgomesc/vision-camera-code-scanner#62
In the Podfile, I added the fix below after the use_frameworks lines, which worked.
use_frameworks! :linkage => :static
use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks']
use_frameworks! :linkage => ENV['USE_FRAMEWORKS'].to_sym if ENV['USE_FRAMEWORKS']
# vision camera fix
# some indication the use_frameworks keyword is causing issues
# see: https://github.com/rodgomesc/vision-camera-code-scanner/issues/62
pre_install do |installer|
installer.pod_targets.each do |pod|
if pod.name.eql?('VisionCameraOcr') ||
pod.name.eql?('VisionCamera')
def pod.build_type
Pod::BuildType.static_library
end
end
end
end
I had this working on a bare RN app, but I'm trying to migrate it to Expo now, and it's no longer building on iOS.
It gives this error:
RN Vision Camera version:
"react-native-vision-camera": "^4.6.3",
I'm using expo-devlauncher and this setup in
app.config.ts
:I've also tried adding these to
expo-build-properties
(also tried without):I'm using the branch which has TextRecognition set to 6.0.0, but I don't think that is related to this error (it was necessary for getting this far in the build).
Any ideas about how I can resolve this?
The text was updated successfully, but these errors were encountered: