hello, we develop 2d games with Cocos Code IDE and Xcode,we enjoy the cocosIDE,but we need xcode to write c++ code. so we write lua module in cocos,and integreted in xcode。but there is a problem with resource path.
in xcode,we can set search path as “res/xxx”,it's a relative path of Resources ,it's true in xcode,but not in cocos,for example
local searchPath=cc.FileUtils:getInstance():getSearchPaths()
table.insert(searchPath,1,"res/w768/ui/choose/publish/")
cc.FileUtils:getInstance():setSearchPaths(searchPath)
this code worked in xcode,but did not work in cocos ide,do i need to configure something? i hope the a piece of code will work fine in two ide with out change it.
thanks