@Diyor wrote:
Hi,
I am trying to build my cocos2d-x project with the target to the Mac Desktop in Xcode (7.1.1). But, it is failing to load game assets from the Resource folder.
File Path: cocos2d: fullPathForFilename: No file found at spritesheet.plist. Possible missing file. cocos2d: SpriteFrameCache: can not find spritesheet.plist
However, when I build the same project for the iOS, it works.
I tried to check the full path of files:
std::string fullFilePath = FileUtils::getInstance()->fullPathForFilename("spritesheet.plist"); CCLOG("File Path: %s", fullFilePath.c_str());
- In Mac Desktop it prints out nothing:
File Path: (empty)
When build for iOS:
/Users/idiyor/Library/Developer/CoreSimulator/Devices/B57DA8DC-25F2-45A1-8169-7B24FA173C0F/data/Containers/Bundle/Application/CB77CAD5-DB7D-42BE-AB18-EEBA966B1F5B/SampleProject-mobile.app/spritesheet.plist
Who had this kind of problems, if you guys have some fixes please share. Thanks.
Posts: 3
Participants: 2