Resources in Xcode

What could be wrong if readImage results with nil in Xcode? It is OK, when Lua sources are copied into exported Cargo Bot project with manualy added Documents resources. Is there some switch I am missing at export?

It was something wrong with project as libcodea.a and libtools.a were not included in exported project. It works perfectly now, when I duplicated project in Codea and exported new project to Xcode.