FaceDetector not finding faces in iOS in bare installation

Hello!

I have a bare React Native project that I’ve added Expo-AV, Expo-Camera, and FaceDetector to. The Camera and AV libraries work as expected across both Android and iOS, so I know everything’s configured correctly as per the documentation.

The issue is when I try to use FaceDetector on iOS. It always returns 0 faces, even if faces are clearly in the image. If I try to use it on the Camera preview, rather than returning every X milliseconds, it only runs once on camera startup, detects 0 faces, then never triggers again.

There are no errors or warnings. It simply… Doesn’t work.

I’ve tried searching through the documentation and Github issues and can’t find anything regarding this. I even tried the advice here: FaceDetector not working in iOS standalone builds after MLKit migration · Issue #5373 · expo/expo · GitHub but nothing has changed.

Here’s my expo diagnostics output:

  Expo CLI 4.11.0 environment info:
    System:
      OS: macOS 11.5.2
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 16.7.0 - /usr/local/bin/node
      Yarn: 1.22.10 - /usr/local/bin/yarn
      npm: 7.20.3 - /usr/local/bin/npm
      Watchman: 2021.08.02.00 - /usr/local/bin/watchman
    Managers:
      CocoaPods: 1.10.2 - /usr/local/bin/pod
    SDKs:
      iOS SDK:
        Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
      Android SDK:
        API Levels: 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31
        Build Tools: 21.1.2, 22.0.1, 23.0.1, 23.0.2, 25.0.0, 26.0.0, 26.0.1, 26.0.2, 26.0.3, 27.0.3, 28.0.0, 28.0.1, 28.0.2, 28.0.3, 29.0.2, 30.0.2
        System Images: android-27 | Google Play Intel x86 Atom, android-28 | Google APIs Intel x86 Atom
    IDEs:
      Android Studio: 2020.3 AI-203.7717.56.2031.7621141
      Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild
    npmPackages:
      react: 17.0.2 => 17.0.2 
      react-native: ^0.65.1 => 0.65.1 
      react-navigation: ^4.4.4 => 4.4.4 
    npmGlobalPackages:
      expo-cli: 4.11.0
    Expo Workflow: bare

Is there any way to debug what’s going on? Without errors, I have no leads why this isn’t working! At this point I’m thinking I’ll have to go with other libraries, because this is beyond frustrating.