Cocos IDE resources path

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

i think it’s my problem in xcode
cc.FileUtils:getInstance():addSearchPath(“xxx”) will work in either ide.

Which engine version you select? It had a “searchpath” bug in cocos2d-x 3.1 .
I recommend you select newest IDE and engine.
Cocos Code IDE1.0.0 rc0
cocos2d-x 3.2

Basic Environment
vs2012
xcode 5.1
ndk r9d