Link external lib to detach expo project in xcode 10


#1

I’m trying to link the lib https://github.com/react-native-community/react-native-text-input-mask/ in my detach expo in xcode 10. What I tried:

  1. Follow README : the error undefined is not an object (evaluating '_reactNative.NativeModules.RNTextInputMask.mask')

  2. Linking as external lib : the error 'React/RCTBridge.h' file not found

  3. Creating my own podfile: :-1: Value for SWIFT_VERSION cannot be empty. (in target 'InputMask')

Since I know the lib has been requested as part of expo framework. Maybe someone can help with it.

on Github

expo diagnostics
Environment:
OS: macOS 10.14
Node: 9.8.0
Yarn: 1.5.1
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 10.1 Build version 10B61
Android Studio: 3.0 AI-171.4443003

Packages: (wanted => installed)
expo: ^30.0.1 => 30.0.1
react: 16.3.1 => 16.3.1
react-native: https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz => 0.55.4


#2

Hey @fausto,

Have you looked into configuring the Header Search Paths mentioned here? https://docs.expo.io/versions/v31.0.0/expokit/expokit#changing-native-dependencies

Cheers,

Adam


#3

@adamjnav it’s requiring class found at React which already imported on xcode via PODS_ROOT. Tried to add

  • Header Search Paths "/Users/xyz/Projects/coding/myapp/node_modules/react-native-text-input-mask/ios"
  • Header Search Paths "/Users/xyz/Projects/coding/myapp/node_modules/react-native-text-input-mask/ios/**"

Nothing works. Man, just stuck in this stuff for weeks… Does anyone have an ideia I can try?


#4

Just found a solution which is described here react-native-community/react-native-text-input-mask#73 (comment)