13
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

tmux を使用しているとシミュレータでアプリが起動しない

Last updated at Posted at 2012-10-18

tmux を使用していると rake コマンドでシミュレータを起動しようとすると、以下のようなログが表示されたきり、その後アプリが動き出すこともないしシミュレータが前面に表示されることもないようです。

$ rake
     Build ./build/iPhoneSimulator-6.0-Development
   Compile ./app/app_delegate.rb
   Compile ./app/hello_view.rb
   Compile ./app/hello_view_controller.rb
    Create ./build/iPhoneSimulator-6.0-Development/Hello.app
      Link ./build/iPhoneSimulator-6.0-Development/Hello.app/Hello
    Create ./build/iPhoneSimulator-6.0-Development/Hello.app/Info.plist
    Create ./build/iPhoneSimulator-6.0-Development/Hello.app/PkgInfo
      Copy ./resources/icon.png
    Create ./build/iPhoneSimulator-6.0-Development/Hello.dSYM
  Simulate ./build/iPhoneSimulator-6.0-Development/Hello.app

CPU 使用率が跳ね上がることもなく、rake debug=1rake mode=release といろいろ起動方法を変えても相変わらずシミュレータはうんともすんとも言ってくれません。どうやら tmux の問題らしく、@satococoa さんに教えていただいた回避方法は、

$ brew install reattach-to-user-namespace
$ echo 'set-option -g default-command "reattach-to-user-namespace -l $SHELL"' >> ~/.tmux.conf

知らないとずっとハマってしまいそうな現象です。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?