Xcode 14.3 通过命令行构建的 Rosetta 版本

huangapple go评论85阅读模式
英文:

Xcode 14.3 Rosetta build with command line

问题

As Apple removed x86_64 support for Xcode and introduced separate simulators for Rosetta, I wondered how I could run my app on a Rosetta simulator via cli.

This is also needed for fastlane. (see Fastlane Issue)

In the release notes of Xcode 14.3 nothing regarding the cli is mentioned. (Release Notes)

英文:

As Apple removed x86_64 support for Xcode and introduced sperate simulators for Rosetta, I wondered how I could run my app on a Rosetta simulator via cli.

This is also needed for fastlane. (see Fastlane Issue)

In the release notes of Xcode 14.3 nothing regarding the cli is mentioned. (Release Notes)

答案1

得分: 2

根据我开启的GitHub问题,以及一位用户指出可以使用以下命令构建Rosetta模拟器。

xcodebuild -workspace App.xcworkspace -scheme App -destination "platform=iOS Simulator,name=iPhone 13,arch=x86_64" build

Fastlane

现在的scan中有一个新的run_rosetta_simulator选项。

英文:

According to the Github Issue which I opened for fastlane as well a user pointed out that following command can be used to build for Rosetta Simulator.

xcodebuild -workspace App.xcworkspace -scheme App -destination "platform=iOS Simulator,name=iPhone 13,arch=x86_64" build

Fastlane

There is a new run_rosetta_simulator option on scan now.

答案2

得分: -2

为了在Xcode 14.3+中使用Rosetta打开应用程序,请按照以下步骤操作:

  1. 转到菜单栏中的“Product”菜单,选择Destination > Destination Architectures > Show Rosetta Destinations。
    你会看到在模拟器旁边有括号中的架构,这里是Rosetta。

  2. 在模拟器名称旁边,你会看到一个带有Rosetta架构的括号。

如果你想要在两种架构上运行,请选择“Show Both”选项。

参考链接:https://sarunw.com/posts/open-using-rosetta-in-xcode-14-3/

英文:

for Xcode 14.3 + please follow this to Open using Rosetta in Xcode 14.3+

To run an app on a Rosetta simulator, you need to do the followings.

  1. Go to the "Product" menu in the menu bar and select Destination > Destination Architectures > Show Rosetta Destinations.
    You will see architecture in parenthesis next to the simulator. In this case, it is Rosetta.
  2. You will see a Rosetta architecture in parenthesis next to simulator names.

If you want to run on both architectures, select the "Show Both" option.

  • Go to the "Product" menu in the menu bar and select Destination > Destination Architectures > Show Both.

Reference: https://sarunw.com/posts/open-using-rosetta-in-xcode-14-3/

huangapple
  • 本文由 发表于 2023年4月13日 17:13:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/76003712.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定