问题
i know that this question has been posted a lot of times but the suggested solutions doesn't fit my case, when i try to build and run my app on the simulator, i got this error and it crashes:
Couldn't register test.My-App-Name 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.
I tried to create a new app with Xcode with the same name but i got the same issue. However, when i try to make a different app(different name) in Xcode, it run pretty good.
Does any one know how to solve that problem.
回答1:
This can be the result of a "hung" instance of an app running within the iOS simulator itself. Have you tried resetting the contents and settings of the simulator?
回答2:
I had this problem consistently on one project. After much backtracking (basically removed all of my c++ code from the project), I found one thing that helped: I had a subfolder inside the main folder of the project, with the same name as the project:
-MyProject (folder)
--myfile.h
--myfile.mm
--MyProject (folder)
---myotherfile.h
---myotherfile.cpp
I changed the subfolder's name (which contains all my c++) to MyProjectBlaah and now the error has gone away. Restarting the simulator, Xcode, and Mac didn't help.
来源:https://stackoverflow.com/questions/8432707/error-unknown-error-code-this-process-was-already-running-or-is-hung-in-the-de