LoginSignup
7
7

More than 5 years have passed since last update.

[RubyMotion]iOS6と7どちらでもシュミレーターを起動できるようにする

Last updated at Posted at 2013-09-24

やったこと。

まず、手元のXCodeを5にアップグレードする。
App StoreからXcodeを落としてると思うので、App StoreでXCodeを検索してそのページからアップデートする。

この状態だと6でビルド出来なくなるので、古いSDKを含むXCodeを別途、別のパスに入れないといけない。

https://developer.apple.com/xcode/index.php

For past versions of Xcode or additional tools— View downloads

のリンクから古いバージョン(4.6.3)を落とす。

XCode5が4.6に上書きされないように一旦退避。

mv /Applications/Xcode.app /Applications/Xcode5.0.app

で、落として来た4.6.3をXcodeとしてインストールし、

mv /Applications/Xcode.app /Applications/Xcode4.6.app
mv /Applications/Xcode5.0.app /Applications/Xcode.app

で、Xcode -> Xcode4.6、Xcode5.0 -> Xcodeのようにリネーム。

その後、

 ln -s /Applications/Xcode4.6.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk ¥
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.platform/Developer/SDKs/

として、4.6のSDKを、5のSDKの中にシンボリックリンクした。

それで、rubymotion用のディレクトリで

rake target=6.1

これで、iOS6.1用としてシミュレーターを起動できる。

rake

だけなら、iOS7用で起動される。

参考: http://stackoverflow.com/questions/18423896/is-it-possible-to-install-ios-6-sdk-on-xcode-5
参考: http://satococoa.github.io/blog/2012/12/08/rubymotion-tips/

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