Couldn't register com.samples.MyApp with the bootstrap server. (2)

あれ、またアプリが起動しなくなった。何でしょ? :-(

見たことのあるエラーがコンソールに出てる。また iOS Simulator がおかしくなったみたい。:-p

Couldn't register jp.co.bsnnet.CloudSession 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.sharedlibrary apply-load-rules all


前にも同じ経験したなーとiOS Simulatorのプロセス停止でOK、、、のはずが復活しない?!よく見たら、2行目のメッセージが前回と違う。ダメじゃん。^^;)
2行目をキーワードにして検索したら対処方法を見つけた。

Try this:
1) Clean your project in XCode. This deletes what it has compiled.
2) In the simulator, "Reset Content and Settings" to completely clean the simulator.
3) Do a full shutdown on the computer and reboot it.
4) Try to deploy it to the simulator again.

App stucks at launch image after starting it the second time inside simulator.


つまり、こんな手順だそーな。みごと復活。やったね!!! :-)

  1. Xcodeをクリーンビルドする(Project > Clean)
  2. iOSシミュレータをリセットする(iOSシミュレータ > コンテンツと設定をリセット)
  3. Mac を再起動する
  4. iOSシミュレータでアプリを再実行する


ちなみに 1 だけ、1+2 だけでも操作してみたけど、エラーは解消しなかった。3 の Mac を再起動するのがミソみたい。

環境
  • Mac OSX 10.7.2
  • XCode 4.2.1
  • iOSシミュレータ 5.0