vision-camera-code-scanner icon indicating copy to clipboard operation
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

Open phenghubctv opened this issue 3 years ago • 11 comments

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) ...

phenghubctv avatar Jan 21 '22 13:01 phenghubctv

i think this library doesn't support ARM yet. can you try Xcode with rosetta2?

whtjs avatar Jan 25 '22 11:01 whtjs

@whtjs Thank you very much.

phenghubctv avatar Jan 26 '22 17:01 phenghubctv

  1. sudo arch -x86_64 gem install ffi Then

  2. arch -x86_64 pod install This works for me in Apple M1 Chip.

ankitjaiswal1994 avatar Jan 27 '22 11:01 ankitjaiswal1994

@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

phenghubctv avatar Jan 27 '22 16:01 phenghubctv

@khampheng-ctv Looks like a common issue. Check this thread: https://github.com/ffi/ffi/issues/814

ankitjaiswal1994 avatar Jan 27 '22 17:01 ankitjaiswal1994

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.

pangoben avatar May 04 '22 23:05 pangoben

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?

whtjs avatar May 09 '22 05:05 whtjs

  1. sudo arch -x86_64 gem install ffi Then
  2. arch -x86_64 pod install This works for me in Apple M1 Chip.

still not working :(

flyingstarlai avatar Jan 28 '23 01:01 flyingstarlai

Same problem here, obviously a lib problem without attention

Change the Pods architecture due a single lib is not the solution

truediogo avatar Feb 23 '23 10:02 truediogo

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

ankitpunchh avatar Feb 23 '23 12:02 ankitpunchh

The solution did not help. Still having this issue.

  1. sudo arch -x86_64 gem install ffi Then

    1. arch -x86_64 pod install This works for me in Apple M1 Chip.

sleaper avatar Apr 06 '23 16:04 sleaper