vision-camera-code-scanner
vision-camera-code-scanner copied to clipboard
Please help me too. Devices running Xcode v13, IOS simulator 15, Macbook M1, react-native-vision-camera v2.12.0
ignoring file /Users/macbook/Library/Developer/Xcode/DerivedData/AnousithAppScan-edavafsnomekgaeweagdddvhddgh/Build/Products/Debug-iphonesimulator/nanopb/libnanopb.a, building for iOS Simulator-x86_64 but attempting to link with file built for iOS Simulator-arm64 ld: warning: ignoring file /Users/macbook/Library/Developer/Xcode/DerivedData/AnousithAppScan-edavafsnomekgaeweagdddvhddgh/Build/Products/Debug-iphonesimulator/react-native-safe-area-context/libreact-native-safe-area-context.a, building for iOS Simulator-x86_64 but attempting to link with file built for iOS Simulator-arm64 ld: warning: ignoring file /Users/macbook/Library/Developer/Xcode/DerivedData/AnousithAppScan-edavafsnomekgaeweagdddvhddgh/Build/Products/Debug-iphonesimulator/vision-camera-code-scanner/libvision-camera-code-scanner.a, building for iOS Simulator-x86_64 but attempting to link with file built for iOS Simulator-arm64 Undefined symbols for architecture x86_64: "_GULLogBasic", referenced from: _MLKLog in MLKitCommon(MLKLogger.o) "_GPBClearOneof", referenced from: _MLKITx_EPTFlagValue_ClearValueOneOfCase in MLKitCommon(FlagValues.pbobjc.o) _MLKITx_PHENORegistrationInfo_ClearPackageVersionOneOfCase in MLKitCommon(RegistrationInfo.pbobjc.o) _MLKITx_PHENORegistrationInfo_ClearApplicationInfoOneOfCase in MLKitCommon(RegistrationInfo.pbobjc.o) _MLKITx_CLCCCounter_ClearCounterIdOneOfCase in MLKitCommon(Counters.pbobjc.o) "OBJC_CLASS$_GTMLogMininumLevelFilter", referenced from: objc-class-ref in MLKitCommon(GIPLoggingReroutingGTMLogger.o) "OBJC_METACLASS$_GTMLogger", referenced from: OBJC_METACLASS$_MLKITx_GIPLoggingReroutingGTMLogger in MLKitCommon(GIPLoggingReroutingGTMLogger.o) "OBJC_CLASS$_GPBCodedOutputStream", referenced from: objc-class-ref in MLKitCommon(CCTLogOutputStream.o) "OBJC_CLASS$_GPBFileDescriptor", referenced from: objc-class-ref in MLKitCommon(Enums.pbobjc.o) objc-class-ref in MLKitCommon(UploaderState.pbobjc.o) objc-class-ref in MLKitCommon(FirebaseMlSdk.pbobjc.o) objc-class-ref in MLKitCommon(Barhopper.pbobjc.o) objc-class-ref in MLKitCommon(FlatFile.pbobjc.o) objc-class-ref in MLKitCommon(TypedFeatures.pbobjc.o) objc-class-ref in MLKitCommon(PhenotypeLog.pbobjc.o) ... "OBJC_CLASS$_GPBEnumDescriptor", referenced from: objc-class-ref in MLKitCommon(Enums.pbobjc.o) objc-class-ref in MLKitCommon(FirebaseMlSdk.pbobjc.o) objc-class-ref in MLKitCommon(Barhopper.pbobjc.o) objc-class-ref in MLKitCommon(FlatFile.pbobjc.o) objc-class-ref in MLKitCommon(PhenotypeLog.pbobjc.o) objc-class-ref in MLKitCommon(Clientanalytics.pbobjc.o) objc-class-ref in MLKitCommon(VisionExtension.pbobjc.o) ... "OBJC_CLASS$_GPBDescriptor", referenced from: objc-class-ref in MLKitCommon(Enums.pbobjc.o) objc-class-ref in MLKitCommon(UploaderState.pbobjc.o) objc-class-ref in MLKitCommon(FirebaseMlSdk.pbobjc.o) objc-class-ref in MLKitCommon(Barhopper.pbobjc.o) objc-class-ref in MLKitCommon(FlatFile.pbobjc.o) objc-class-ref in MLKitCommon(TypedFeatures.pbobjc.o) objc-class-ref in MLKitCommon(PhenotypeLog.pbobjc.o) ... "OBJC_CLASS$_GPBMessage", referenced from: OBJC_CLASS$_MLKITx_EXHFetchReason in MLKitCommon(Enums.pbobjc.o) OBJC_CLASS$_MLKITx_CCTUploaderState in MLKitCommon(UploaderState.pbobjc.o) OBJC_CLASS$_MLKITx_FBMLSystemInfo in MLKitCommon(FirebaseMlSdk.pbobjc.o) OBJC_CLASS$_MLKITx_FBMLModelInfo in MLKitCommon(FirebaseMlSdk.pbobjc.o) OBJC_CLASS$_MLKITx_FBMLOtherError in MLKitCommon(FirebaseMlSdk.pbobjc.o) OBJC_CLASS$_MLKITx_FBMLImageInfo in MLKitCommon(FirebaseMlSdk.pbobjc.o) OBJC_CLASS$_MLKITx_FBMLInferenceCommonLogEvent in MLKitCommon(FirebaseMlSdk.pbobjc.o) ... "OBJC_METACLASS$_GPBMessage", referenced from: OBJC_METACLASS$_MLKITx_EXHFetchReason in MLKitCommon(Enums.pbobjc.o) OBJC_METACLASS$_MLKITx_CCTUploaderState in MLKitCommon(UploaderState.pbobjc.o) OBJC_METACLASS$_MLKITx_FBMLSystemInfo in MLKitCommon(FirebaseMlSdk.pbobjc.o) OBJC_METACLASS$_MLKITx_FBMLModelInfo in MLKitCommon(FirebaseMlSdk.pbobjc.o) OBJC_METACLASS$_MLKITx_FBMLOtherError in MLKitCommon(FirebaseMlSdk.pbobjc.o) OBJC_METACLASS$_MLKITx_FBMLImageInfo in MLKitCommon(FirebaseMlSdk.pbobjc.o) OBJC_METACLASS$_MLKITx_FBMLInferenceCommonLogEvent in MLKitCommon(FirebaseMlSdk.pbobjc.o) ...
i think this library doesn't support ARM yet. can you try Xcode with rosetta2?
@whtjs Thank you very much.
-
sudo arch -x86_64 gem install ffi Then
-
arch -x86_64 pod install This works for me in Apple M1 Chip.
@ankitjaiswal1994 Thanks a lot for the advice. After I installed "sudo arch -x86_64 gem install ffi", An error occurred.
#Terminal To see why this extension failed to compile, please check the mkmf.log which can be found here:
/Library/Ruby/Gems/2.6.0/extensions/universal-darwin-20/2.6.0/ffi-1.15.5/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5 for inspection. Results logged to /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-20/2.6.0/ffi-1.15.5/gem_make.out
@khampheng-ctv Looks like a common issue. Check this thread: https://github.com/ffi/ffi/issues/814
Hello has there been any plans to update this package to work for m1 architecture? Would love to use this package but need the ability to build onto a simulator and not just a device.
Hello has there been any plans to update this package to work for m1 architecture? Would love to use this package but need the ability to build onto a simulator and not just a device.
did you try solution suggested here?
- sudo arch -x86_64 gem install ffi Then
- arch -x86_64 pod install This works for me in Apple M1 Chip.
still not working :(
Same problem here, obviously a lib problem without attention
Change the Pods architecture due a single lib is not the solution
Same problem here, obviously a lib problem without attention
Change the Pods architecture due a single lib is not the solution
This is open source, we cannot be harsh. Working for me : https://github.com/rodgomesc/vision-camera-code-scanner/issues/34#issuecomment-1023130238
The solution did not help. Still having this issue.
sudo arch -x86_64 gem install ffi Then
- arch -x86_64 pod install This works for me in Apple M1 Chip.