Adrian
Adrian

Reputation: 555

How to run Xcode Build Server under Rosetta?

I have a configured Xcode Server on an M1 mac mini. Due to some issues which are outside of the scope of the question, I have to run the server so it builds the project under Rosetta.

However, that does not seem to work by ticking the "Run under Rosetta" in either Xcode "Get Info" view or Xcode Server Build view, which is also confirmed by Activity Monitor that shows "Apple" for the architecture.

Xcode 13.2.1 macOS Big Sur 11.6.3

Any ideas on how this can be solved?

Upvotes: 4

Views: 2913

Answers (1)

gmogames
gmogames

Reputation: 3081

You can try appending your command with the arch command to load the specific slice.

arch -x86_64 xcodebuild -showBuildSettings -workspace ./Project.xcworkspace -scheme YourScheme ...

Upvotes: 4

Related Questions