win32的一个项目移植到ios,之前没弄过MAC,环境不太熟,瞎折腾,报这个错要怎么弄呢,:
代码:std::string path = CCFileUtils::sharedFileUtils()->fullPathForFilename(“script/main.lua”);
编译不会错误,启动IOS模拟器是黑屏,提示错误:
Cocos2d: cannot open script/main.lua; No such file or directory
win32的一个项目移植到ios,之前没弄过MAC,环境不太熟,瞎折腾,报这个错要怎么弄呢,:
代码:std::string path = CCFileUtils::sharedFileUtils()->fullPathForFilename(“script/main.lua”);
编译不会错误,启动IOS模拟器是黑屏,提示错误:
Cocos2d: cannot open script/main.lua; No such file or directory
额 看到之前某位兄台的帖子 解决了 !
把资源以目录的形式加入xcode中, 同时, 在加入时, 选择"Create Folder References for any added folders", 而不是默认的"Recursively create groups for any added folders", 加入后,xcode左侧树状结构内显示的图标是蓝色而非黄色