"run" is gray in Xcode, a totally new project with "create_project.py"

"run" is gray in Xcode, a totally new project with "create_project.py"
0

#1

I created a totally new project with the tool “create_project.py”. Build succeeded on both IOS and Mac, but the “Product->Run” is gray on both platform.
The result is when press the triangle button at the top left corner of Xcode, on Mac the app will not start and on IOS the emulator won’t show up.
It’s really strange that I created a successful project that can build and run in the same way just yesterday.
Mac OS X 10.8.5, Xcode 5.0, cocos2d-x 2.2.
Thanks for help.


#2

The “Product->Run” is gray because the current target selected is not runnable means it is a library i.e. cocos2dx.
Try to change the correct target and run it.


#3

Thanks. I rechecked my setting, and found out the default scheme of a new project which is created by “create_project.py” is cocos2dx
That’s really weird! So change scheme by “Product~~>scheme" will work.
Bunty Nara wrote:

The "Product~~>Run” is gray because the current target selected is not runnable means it is a library i.e. cocos2dx.
Try to change the correct target and run it.