luicfrr / react-native-vision-camera-face-detector

Vision Camera Frame Processor Plugin to detect faces using MLKit Face Detector
https://www.npmjs.com/package/react-native-vision-camera-face-detector
MIT License
77 stars 15 forks source link

(iOS): Doesn't build with expo modules #3

Closed BalogunofAfrica closed 4 months ago

BalogunofAfrica commented 4 months ago

Great plugin!

I first got could not find module 'ExpoModulesCore' for target 'x86_64-apple-ios-simulator'; found: arm64-apple-ios-simulator when trying to build for iOS, error went away when I added x86_64 to Excluded Architecture.

Now getting :

ld: building for 'iOS-simulator', but linking in object file (/path/to/project/ios/Pods/MLImage/Frameworks/MLImage.framework/MLImage[arm64][2](GMLImage.o)) built for 'iOS'

when I run on iOS. Builds fine for Android.

Here are my dependencies:

{
    "expo": "^50.0.7",
    "react-native-vision-camera": "^3.9.0",
    "react-native-vision-camera-face-detector": "^1.2.2",
    "react-native-worklets-core": "^0.3.0",
}

Got the same result using "expo": "50.0.4" as suggested in the readme

luicfrr commented 4 months ago

Are you using an expo managed workflow? (delete android/ios folders and let expo recreate them)

Also, are you using a M1 mac? If this is your case I think this is something related to this issue. Check this issue as there are some workarounds to try.

luicfrr commented 4 months ago

Closing due to inactivity