mateuscardosogs/react-native-firebase-mlkit

Colliding with RNCamera on iOS, error: Undefined symbol: _OBJC_CLASS_$_BarcodeDetectorManagerMlkit

Opened this issue · 2 comments

Thank you for building this mlkit bridge. I am having difficulty using this package with RNCamera.

I have RNFirebase and RNCamera both functioning correctly on my app, but when I link react-native-firebase-mlkit and install the necessary pods, I get the following build error (iOS):

Undefined symbols for architecture arm64: "_OBJC_CLASS_$_BarcodeDetectorManagerMlkit", referenced from: objc-class-ref in libRNCamera.a(RNCameraManager.o)

Has anyone else encountered difficulty using this library with RNCamera?

Xcode version: 10.2

From package.json:

"dependencies": {
    "@okgrow/react-native-copilot": "^2.4.1",
    "@react-native-firebase/mlkit": "^0.0.4",
    "eslint-config-rallycoding": "^3.2.0",
    "lodash": "^4.17.11",
    "moment": "^2.24.0",
    "react": "16.8.3",
    "react-native": "0.59.5",
    "react-native-appsee": "^2.6.1",
    "react-native-calendar-events": "^1.7.1",
    "react-native-calendars": "^1.32.0",
    "react-native-camera": "^2.6.0",
    "react-native-communications": "^2.2.1",
    "react-native-contacts": "^4.0.0",
    "react-native-datepicker": "^1.7.2",
    "react-native-elements": "^1.1.0",
    "react-native-firebase": "^5.3.1",
    "react-native-firebase-mlkit": "^0.6.2",
    "react-native-google-places-autocomplete": "^1.3.9",
    "react-native-immediate-phone-call": "^1.0.0",
    "react-native-keyboard-aware-scroll-view": "^0.8.0",
    "react-native-maps": "^0.24.2",
    "react-native-navigation-directions": "^1.0.3",
    "react-native-permissions": "^1.1.1",
    "react-native-router-flux": "^4.0.6",
    "react-native-sliding-panes": "^1.0.3",
    "react-native-snap-carousel": "^3.7.5",
    "react-native-svg": "^9.4.0",
    "react-native-swipeout": "^2.3.6",
    "react-native-unified-contacts": "^1.6.2",
    "react-native-vector-icons": "^6.4.2",
    "react-redux": "^7.0.2",
    "redux": "^4.0.1",
    "redux-thunk": "^2.3.0",
    "s": "^0.1.1",
    "victory-native": "^32.0.2"

Build-Phases tab of Main project target
Screenshot 2019-05-18 13 46 31

Yes I have exactly the same error

Today I had the same issue I noticed that BarcodeDetectorManagerMlkit.m and BarcodeDetectorManagerMlkit.h were missing after linking RNMlKit so I just drag these two files from .../node_modules/react-native-camera/ios/RN/BarcodeDetectorManagerMlkit.h. (and BarcodeDetectorManagerMlkit.m).
image