2

My app has been running fine on iPhone simulator. I have hit an issue (discussed here: Intermittent error accessing core data model / contacts database) and now all of a sudden, it won't build and run on iPhone simulator. I have the following error:

Couldn't register com.yourcompany.XXX 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.(lldb) 

Any thoughts? I have tried totally closing and resetting iPS as well as deleting the app and reinstalling but to no avail.

Very frustrating!!!

Community
  • 1
  • 1
Ben Thompson
  • 4,743
  • 7
  • 35
  • 52

5 Answers5

2

Reset your iphone simulator and clean up your xcode project.

Type

apple-alt-shift-k

in xcode.

Lobo
  • 4,001
  • 8
  • 37
  • 67
Niels Sønderbæk
  • 3,487
  • 4
  • 30
  • 43
1

Quit the iPhone simulator and run it again.

Raj Subbiah
  • 1,292
  • 11
  • 20
1

It happens quite a lot for me, especially during frequent restarts of the simulated app. I tracked it down to (at least sometimes) a race condition or deadlock when the simulated app is shutting down and a new one is starting up.

  1. Quitting the simulator usually work
  2. If that does not help, restart Xcode
  3. Sometimes processes may linger and restarting the Mac is ususally the quickest way to recover (although clever use of the killall command can salvage the situation if it is really inconvenient to restart).
Krumelur
  • 31,081
  • 7
  • 77
  • 119
0

Quit the simulator and xcode.Also delete the app from your simulator.... and if it does not work goto target setting and change something like name of app in bundle identifier . and it should work

Singh
  • 2,151
  • 3
  • 15
  • 30
0

You are using Core Data. So its possible you changed the dataModel and NSManagedObject class is changed. So it will crash until you delete application from simulator and run your project again..

rohan-patel
  • 5,772
  • 5
  • 45
  • 68