LoginSignup
2
3

More than 5 years have passed since last update.

MacOS X 10.12の Xcode に古い MacOSのSDKをインストールする

Posted at

10年以上前の Cocoa アプリをコンパイルする必要が出てきたので、それのメモ書き。

一応で Mac OS X 10.9 以上に対応させるのが目的。

XCodeのバージョンは9.2、AppStoreからインストールしたものです。

準備

  1. https://github.com/devernay/xcodelegacy から XcodeLegacy.sh をダウンロードしておく。
  2. https://github.com/phracker/MacOSX-SDKs/releases から対象SDKをダウンロードしておく

インストール

対象SDK(この場合は MacOSX10.9.sdk.tar.xz)のあるディレクトリで、XcodeLegacy.shのコマンドを実行する。

~/Downloads/r $ sudo /Users/yasui/bin/XcodeLegacy.sh -osx109 install

*** Info: found Xcode >= 4.3 in /Applications/Xcode.app
*** installed MacOSX10.9.sdk.tar.xz
*** modified MacOSX Info.plist
*** Warning: /Developer/SDKs should be a symlink to /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
Check that /Developer exists, and fix /Developer/SDKs with:
 $ sudo ln -sf '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs' /Developer/SDKs

設定

対象プロジェクトでプロジェクトの ArchitectureBaseSDKOS X 10.9 が選択できれば成功です。

2
3
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
2
3