How to add dependencies to expo native modules on ios

Please provide the following:

  1. SDK Version: 46
  2. Platforms(Android/iOS/web/all): iOS
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

I recently started using “expo native modules” to add custom native functionality to my app. As this native functionality becomes more and more complex I wish to use third party libraries in my native module. More specifically I’d like to create a native view which leverages the Google digital ink library (part of MLKit) to recognize handwritten textual input.

What I’ve done to accomplish this:

  1. added s.dependency 'GoogleMLKit/DigitalInkRecognition' to the podspec of the native module
  2. added import MLKit to the native module view file (swift file)
  3. pod install in the ios folder of the example project for the native module
  4. npx expo run:ios in the example project for the native module

However, I always get the following error:

no such module ‘MLKit’ (it’s complaining about the import MLKit line)

What am I missing?

I am thankful for any kind of help.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.