Agontuk / react-native-geolocation-service

React native geolocation service for iOS and android
https://www.npmjs.com/package/react-native-geolocation-service
MIT License
1.6k stars 290 forks source link

Xcode Issue with building app #374

Closed ceyanesb closed 1 year ago

ceyanesb commented 1 year ago

Undefined symbols for architecture x86_64: "_OBJCMETACLASS$_RCTEventEmitter", referenced from: _OBJCMETACLASS$_RNFusedLocation in RNFusedLocation.o "_OBJCCLASS$_RCTEventEmitter", referenced from: type metadata for react_native_geolocation_service.RNFusedLocation in RNFusedLocation.o "_RCTMakeAndLogError", referenced from: react_native_geolocation_service.checkPlistKeys(Swift.String) -> () in LocationUtils.o "_RCTRegisterModule", referenced from: _initialize_RNFusedLocation in RNFusedLocationBridge.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

React Native Info

System:
    OS: macOS 12.6
    CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
    Memory: 1.61 GB / 16.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node
    Yarn: 1.22.17 - ~/.nvm/versions/node/v16.13.0/bin/yarn
    npm: 8.3.0 - ~/.nvm/versions/node/v16.13.0/bin/npm
    Watchman: 2022.02.07.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
    Android SDK:
      API Levels: 23, 28, 29, 30
      Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.2, 30.0.3, 32.0.0, 33.0.0
      System Images: android-28 | Intel x86 Atom, android-28 | Google APIs Intel x86 Atom_64, android-28 | Google Play Intel x86 Atom, android-28 | Google Play Intel x86 Atom_64, android-29 | Intel x86 Atom, android-29 | Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom_64, android-29 | Google Play Intel x86 Atom, android-29 | Google Play Intel x86 Atom_64, android-30 | Google Play Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 2020.3 AI-203.7717.56.2031.7935034
    Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.8 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2 
    react-native: 0.67.4 => 0.67.4 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found
ceyanesb commented 1 year ago

@Agontuk any help? This is happening after installing react-native-firebase for which you need to disable flipper and enable use_frameworks! for it to work. Please help urgen

Agontuk commented 1 year ago

please provide e sample repo if you can which reproduces the crash

Y-k-Y commented 1 year ago

@ceyanesb Did you find the solution for it?

Agontuk commented 1 year ago

I tried building with use_frameworks! :linkage => :static and it built without any issue.

ceyanesb commented 1 year ago

@ceyanesb Did you find the solution for it?

The problem was a combination of this library, react-native-firebase and react-native-stripe. It as a compatibility thing and the best thing I could do without using deprecated code was to upgrade my react native version from 0.67.4 to 0.68.3

Agontuk commented 1 year ago

The problem was a combination of this library, react-native-firebase and react-native-stripe. It as a compatibility thing and the best thing I could do without using deprecated code was to upgrade my react native version from 0.67.4 to 0.68.3

I tried with RN 0.70, maybe that's why it worked fine. Glad you found a solution. Closing this for now.

JulioRosil commented 1 year ago

Got the same, can't fix it

tamdvyounetgroup commented 1 year ago

any solution?