求解答,code ide 安装后和视频教程上的不一样

首先,我下载的是“Cocos引擎V1.0 Preview版本”,安装后,用code ide 创建了项目。
发现在frameworks下只有一个runtime-src,没有cocos2d-x的目录,这是和教学视频中不一样的一处。

第二处不一样的地方是debug的时候一切正常可以断点,但控制台老输出

libpng warning: iCCP: known incorrect sRGB profile
cocos2d: value at stack -1] is not function
cocos2d: debug args = require(‘debugger’)(,’/Users/zhege/Documents/PrebuiltRuntimeLua/debugruntime/’)
cocos2d: cocos2d: fullPathForFilename: No file found at src/main.luac. Possible missing file.
cocos2d: cocos2d: fullPathForFilename: No file found at cocos/init.luac. Possible missing file.
cocos2d: cocos2d: fullPathForFilename: No file found at cocos/cocos2d/Cocos2d.luac. Possible missing file.
cocos2d: cocos2d: fullPathForFilename: No file found at cocos/cocos2d/Cocos2dConstants.luac. Possible missing file.
cocos2d: cocos2d: fullPathForFilename: No file found at cocos/cocos2d/extern.luac. Possible missing file.
cocos2d: cocos2d: fullPathForFilename: No file found at cocos/cocos2d/bitExtend.luac. Possible missing file.
cocos2d: cocos2d: fullPathForFilename: No file found at cocos/cocos2d/DrawPrimitives.luac. Possible missing file.
cocos2d: cocos2d: fullPathForFilename: No file found at cocos/cocos2d/Opengl.luac. Possible missing file.
cocos2d: cocos2d: fullPathForFilename: No file found at cocos/cocos2d/OpenglConstants.luac. Possible missing file.
cocos2d: cocos2d: fullPathForFilename: No file found at cocos/cocosbuilder/CCBReaderLoad.luac. Possible missing file.
cocos2d: cocos2d: fullPathForFilename: No file found at cocos/cocosdenshion/AudioEngine.luac. Possible missing file.
cocos2d: cocos2d: fullPathForFilename: No file found at cocos/cocostudio/CocoStudio.luac. Possible missing file.
cocos2d: cocos2d: fullPathForFilename: No file found at cocos/cocos2d/json.luac. Possible missing file.
cocos2d: cocos2d: fullPathForFilename: No file found at cocos/cocostudio/StudioConstants.luac. Possible missing file.
cocos2d: cocos2d: fullPathForFilename: No file found at cocos/ui/GuiConstants.luac. Possible missing file.
cocos2d: cocos2d: fullPathForFilename: No file found at cocos/ui/experimentalUIConstants.luac. Possible missing file.
cocos2d: cocos2d: fullPathForFilename: No file found at cocos/extension/ExtensionConstants.luac. Possible missing file.
cocos2d: cocos2d: fullPathForFilename: No file found at cocos/network/NetworkConstants.luac. Possible missing file.
cocos2d: cocos2d: fullPathForFilename: No file found at cocos/spine/SpineConstants.luac. Possible missing file.
libpng warning: iCCP: known incorrect sRGB profile
cocos2d: cocos2d: fullPathForFilename: No file found at GameScene.luac. Possible missing file.
cocos2d: suffix = csb

请知道的人解答下疑惑,万分感谢

第一个不同处应该是用的安装目录下的frameworks下的cocos2d-x
第二个问题,我重新生成了一下runtime就好了

但是又发现第三个问题,(无语)
objc: Class AVAudioPlayer is implemented in both /System/Library/Frameworks/AVFoundation.framework/Versions/A/Resources/libAVFAudio.dylib and /Users/jixiaolei/Documents/CocosProjects/CocosLuaGame/runtime/mac/CocosLuaGame Mac.app/Contents/MacOS/CocosLuaGame Mac. One of the two will be used. Which one is undefined.

这个不知道在哪里修改

:10:同样问题,我重新生成了runtime也不行。。。怪了。。

哦,貌似重新生成runtime是不行的,我生成好后,虽然不报错了,但是改了代码后在运行好像没有起作用,所以这个方法是想不通的,这个问题我也没有解决呢

@版主,cocos2d: value at stack -1] is not function
cocos2d: debug args = require(‘debugger’)(,’/Users/zhege/Documents/PrebuiltRuntimeLua/debugruntime/’)
cocos2d: cocos2d: fullPathForFilename: No file found at src/main.luac. Possible missing file.
cocos2d: cocos2d: fullPathForFilename: No file found at cocos/init.luac. Possible missing file.

这个怎么破

就没有人碰到这样的问题吗,就没有人处理过这样的问题吗?

这个问题貌似是因为,runtime首先加载的是.luac的文件,没有的话就会提示,不碍事

这些 console 输出都是引擎给的友情警告,可以自己改引擎屏蔽。

谢谢,不过还是希望ide能把这个问题做的完美些,比如可以在config.json中加一个这样的配置开关,这样就不会误导新学习的同学了

新手,也遇到这个警告,不过游戏可以正常运行,不影响。

我的同样是这个问题,没解决呢

同样问题 但是 cc.SimpleAudioEngine:getInstance():playMusic(bgMusicPath,true)不能用 大神有办法吗

这个问题解决了吗,我也碰到