Archive failed with no such module

Description of the issue

Xcode archive failed with the error `no such module ‘ACPAnalytics’ but same is building fine on local machine

We are trying to use xcodegen for our project

Environment:

Where did the issue happen?

Bitrise.io
stack - Xcode 13.2.x on macOS 11.6 (Big Sur) Elite

Which build Step causes the issue and which version of the step?

xcode-archive@4

Reproducibility

  • _Does a “Rebuild” help? - NO
  • _Does a rebuild without caches help? - NO
  • Does the issue happen sporadically, or every time? : everytime
  • Does upgrading the build Step to the latest version help? : NO
  • When did the issue start? : when we started generating our project using xcodegen

Local reproduction

_Can it be reproduced on your own Mac/PC by following our [local debug guide] - No

Build log

https://app.bitrise.io/build/e101ab6a-01db-4835-b88a-d178960f9ac1?tab=log