File UIRootWidget.cpp missing

Hello. Why is not present the file UIRootWidget.cpp in cocos2d-x-2.2.2.zip ?
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-
2.2.2/projects/juegoprueba/proj.mac/…/…/…/extensions/CocoStudio/GUI/BaseClasses/UIRootWidget.cpp’
clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

Thanks!

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.

Cheers,

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/create_project.py script.)

Specifically: under extensions/CocoStudio
removed project references to:
GUI/BaseClasses/UIRootWidget.cpp
GUI/BaseClasses/UIRootWidget.h
GUI/UIWidgets/ScrollWidget/UIListViewEx.h
GUI/UIWidgets/ScrollWidget/UIListViewEx.cpp
GUI/UIWidgets/UISwitch.cpp
GUI/UIWidgets/UISwitch.h
added project references to:
GUI/System/UIHelper.cpp
GUI/System/UIHelper.h

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