Run iOS project UT's using fastlane scan on Apple M1

Viewed 202

We are setting up CI/CD for iOS project using Gitlab & fastlane tools on Mac Mini(M1 Chip).

When there is a new pull request created, pipeline starts and it executes below command success.

  • fastlane ios build

But it shows "no such module 'Alamofire'" error for below command.

  • fastlane ios test

Other observations on same build machine Mac Mini(M1 Chip):

  • It shows same errors "no such module 'Alamofire'" when try to build or run tests using Xcode(Uncheck Open using Rosetta).
  • Both build & run tests works fine with Xcode(Check Open using Rosetta).

We are looking for build the iOS project and run unit tests on simulator for new/update pull request. Build works fine but run unit tests fails during compilation.

Any help on this would be greatly appreciated.

1 Answers

You are using cocoapods to import Alamofire right?

Do you happen to have any post_install steps that are setting build_settings in your podfile?

Related