tinycreative / react-native-intercom

React Native wrapper for Intercom.io
MIT License
406 stars 280 forks source link

run-ios error: Undefined symbols for architecture x86_64 - Intercom #378

Closed aditibarbhai closed 4 years ago

aditibarbhai commented 4 years ago

The project I am working on used to have a deployment target of ios 9 - IPHONEOS_DEPLOYMENT_TARGET = 9.0 and was using "react-native-intercom": "13.1.0"

Currently, I'm trying to upgrade to the latest version (16.0.0). I set the deployment target to ios 10, but I'm getting the following error when I do pod install:

[!] CocoaPods could not find compatible versions for pod "Intercom":
  In snapshot (Podfile.lock):
    Intercom (= 5.5.1, ~> 5.0)

  In Podfile:
    react-native-intercom (from `../node_modules/react-native-intercom`) was resolved to 16.0.0, which depends on
      Intercom (~> 6.1.0)

Specs satisfying the `Intercom (= 5.5.1, ~> 5.0), Intercom (~> 6.1.0)` dependency were found, but they required a higher minimum deployment target.

What is the minimum deployment target for the latest version? I couldn't find it in the READ.ME

hemche commented 4 years ago

Update Intercom (= 5.5.1, ~> 5.0) to Intercom (~> 6.1.0) in podfile.lock Minimum deployment target is 10.

hemche commented 4 years ago

Also, have this line in podfile at the beginning.

platform :ios, '10.0'

aditibarbhai commented 4 years ago

Thanks, I was able to pod install successfully (I ended up upgrading to the 7.1 PR:"react-native-intercom": "tinycreative/react-native-intercom#04007d2"). Now, however, I get the following error when I run react-native run-ios:

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_UIPointerLiftEffect", referenced from:
      objc-class-ref in Intercom(ICMPointerInteraction.o)
  "_OBJC_CLASS_$_UIPointerStyle", referenced from:
      objc-class-ref in Intercom(ICMPointerInteraction.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Br1an-Boyle commented 4 years ago

@aditibarbhai You'll need to make sure you're using Xcode 11.4 to build your app.

aditibarbhai commented 4 years ago

Resolved by upgrading Xcode. Thanks!

77TecShaeer commented 3 years ago

++++