10
10

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.

XCode での実機デバッグ時に、アプリが立ち上がらない場合の対応

Posted at

実機デバッグ時に、以下のようなメッセージが出てアプリがデバッグできない時がある

"Couldn't register com.yourcompany.yourapp with the bootstrap server. Error: unknown error code. This generally means that another instance of this process was already running or is hung in the debugger."

デバッグ中にXCodeが落ちた場合などに良く発生する。iPhone を再起動すれば治るのだが、いちいち再起動をするのが面倒。

http://www.mikeash.com/pyblog/solving-simulator-bootstrap-errors.html
に書かれているように、Terminal から以下のコマンドを叩けば、iPhone をわざわざ再起動しなくても良い。

launchctl list|grep UIKitApplication|awk '{print $3}'|xargs launchctl remove

元記事にあるように、unfuckbootstrap といったコマンド名で登録しておけば、便利です

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?