iOS Build - Framework Error

Hi - I’m using Fastlane to build an iOS project and I have a strange problem, having some trouble figuring it out.

I can build in Xcode. I can build on my local machine from the command line (fastlane beta) but when I try to build from the CI docker, I get

/Users/distiller/snapsrc/.../MyFile.swift:8:8: error: no such module 'TwilioVideo'
INFO [2019-09-22 11:35:29.06]: ▸ import TwilioVideo

The module exists … it’s in the Podfile, and Podfile.lock … I’m using Bundler for Fastlane so I have the Gemfile and Gemfile.lock in git as well.

The project compiles otherwise … and if I take the pod and I embed it in the project rather than importing the pod framework, it works fine. Very strange problem.

Anyone run into something like this?

Thanks
– Steve

Hey

I’m assuming that you have your pods directory in gitignore. Make sure cocoapods and fastlane are added to your Gemfile

Then you can add commands to your config.yml running the following steps

my_job:
    steps:
      - run:
          name: Install pods
          command: bundle exec pod install
      - run:
          name: Build with fastlane
          command: bundle exec fastlane beta