Hello, today I encountered strange xcodebuild command behaviour when building an application on my company CICD machine. Our app has the standard settings for the IOS platform, without any changes to the Build Settings, but building on the machine for CICD (mac mini M1) fails during build of SPM library. The aforementioned library is simple local SPM Package which wrapps swift-dependencies library, adds macros and few structures. Build log show that the process attempted to build a macro with the x86_64 architecture(log fragment at the end). Building on my local machine succeeds. Unfortunately I've run out of ideas, so I'm hoping that maybe someone here has encountered something similar and will be able to help me solve the problem.
Used command: xcodebuild -workspace $WorkSpaceName.xcworkspace -scheme SchemeName -configuration Release -destination generic/platform=iOS -skipPackagePluginValidation -skipMacroValidation clean archive Package.swift: https://gist.github.com/pelekon/4a563b7f279c0d2f02060b8c554d76b2 Basic system env info: MacOS 15.1.1, Xcode 16.1 (16B40) Log fragment: https://gist.github.com/pelekon/d008ff366124e333d4318fa152062797