I didn't even need to open the terminal in Rosetta. I just needed to run the command using arch -x86_64 (e.g.: xcrun --sdk iphoneos --show-sdk-version). However, this didn't work for all commands (notably xcodebuild)
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: