LoginSignup
1
1

More than 1 year has passed since last update.

【Swift】Apple Silicon搭載Mac以外はインストールできなくする

Posted at

はじめに

以前、Apple Siliconで分岐させる記事を書きました。

しかし、Appleから「Apple Siliconしか使えないならIntel Macではインストールできないようにしろ!」とのレビューをいただきました。
丁寧に対応方法まで記載されていたので記録しておきます。

方法

① プロジェクトを選択します
② ターゲットを選択します
③ 「Build Settings」を選択します
④ 「Excluded Architectures」の欄の囲ってある箇所をダブルクリックします。
スクリーンショット 2023-02-26 19.33.01.png

⑤ 「+」をクリックします
スクリーンショット 2023-02-26 19.37.39.png

x86_64を入力します
スクリーンショット 2023-02-26 19.38.34.png

確認

「My Mac (Rosetta)」がなくなりました。

変更前 変更後
スクリーンショット 2023-02-26 19.36.35.png スクリーンショット 2023-02-26 19.40.47.png

おわり

Appleが対応方法を教えてくれるなんて珍しいです。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1