Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17091

Problem with loading game assets from Resource folder in Xcode

$
0
0

@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());
  1. In Mac Desktop it prints out nothing: File Path: (empty)
  2. 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

Read full topic


Viewing all articles
Browse latest Browse all 17091

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>