File UIRootWidget.cpp missing

File UIRootWidget.cpp missing
0.0 0


Hello. Why is not present the file UIRootWidget.cpp in ?
I can compile ios project but no mac projects.
In version 2.2.1 this file is present.
When I trie to compile, i get this error message:

clang: error: no such file or directory: '/Users/armando/cocos2d-x-
clang: error: no input files
Command /Applications/ failed with exit code 1



I think u have chosen wrong xcode project file.
Did u opened *.xcodeproj wihin proj.ios folder?
I have suffered from same issues on compiling using *.xcodeproj in proj.mac folder.
try it.



Thank you, superwhyun
Yes, this problem only occurs if I compile using proj.mac folder. But I want to compile with mac, not with a ios device.
With version 2.2.1 this file is present and I can compile with proj.ios and proj.mac.
Thanks again! cheers


I’m in the same situation, getting the same error.
I guess I’ll try the …extensions/CocoStudio from 2.2.1.


I believe I resolved this (for me at least):

I went through the project in Xcode and updated the files listed under extensions/CocoStudio to match what actually exists under the extensions/CocoStudio SDK folder. It looks like CocoStudio was significantly updated between release 2.2.1 and 2.2.2 but not all the changes made it in to the Mac project template.

After this I was able to successfully build and run the Mac project.

(I didn’t mention before, but the Mac Xcode project I was using was created using tools/project-creator/ script.)

Specifically: under extensions/CocoStudio
removed project references to:
added project references to:


This solution doesnt work for me. I get several undifined symbols :frowning: