0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

macOS SequoiaでXcode15以下を実行できるようにする回避策

Posted at

エラー本文

macOS Sequoia でXcode15以下を実行使用とすると下記のような警告が出るようになりました。

スクリーンショット 2025-01-27 12.51.05.png

  • EN
In order to use ‘Xcode-15.x.x’, you need to update to the latest version.
  • JA
“Xcode-15.x.x”を使用するには、最新のバージョンにアップデートする必要があります。

回避策1

時間がかかるが、確実な方法

  1. Finderからアプリケーションフォルダを開きます。
  2. Xcode 15.xxアプリを見つけます。例: Xcode-15.4.0.app
  3. Xcodeアプリを右クリックし、「パッケージの内容を表示」を選択します。
  4. フォルダーに移動しContents、次にMacOSフォルダーに移動します。
  5. 内部には、 Xcodeという名前のUnix実行ファイルがあります。
  6. ファイルをダブルクリックすると、 対象のXcodeが起動されます

回避策2

※挙動が少しおかしかったりする

  • コマンドでそのまま実行
/Applications/Xcode-15.x.x.app/Contents/MacOS/Xcode ; exit;

エイリアスを張る(任意)

zshrcの例
自分の環境に合わせて変更してください

  • エイリアスの設定
echo "alias xcode15.x.x=\"/Applications/Xcode-15.x.x.app/Contents/MacOS/Xcode\"" >> ~/.zshrc
  • shell 保存
source ~/.zshrc
  • 実行
xcode15.x.x

終わりに

何か他にいいアイディアなどあれば教えていただけたらと思います

参考

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?