Post

Replies

Boosts

Views

Activity

Reply to [For simulator] How to build Swift packages as x86_64 in Xcode and M1 mac (Apple silicon) without using rosetta
Same problem here. Such a bummer. I work on a project that has some dependencies in both CocoaPods and SwiftPM. Some of the CocoaPods dependencies are prebuilt assuming the simulator is x86, so I have to exclude arm64 from the simulator build settings for all CocoaPods dependencies. This works ok on its own (although it means the simulator runs in Rosetta). But there's no way to get SwiftPM to also build dependencies for x86 other than to run Xcode in Rosetta too.
Mar ’22