I had the problem many of you were describing: a perfect-working example game running in the browser, but when testing on native (jsb), just a black screen with the FPS in the corner.
My resources strings were defined like this ./res/xxxx.png
instead of res/xxxx.png
.
After exhaustingly trying pretty much everything else, I figured path type 2 works for most things, why not this?
If path type 1 works on web and not on mobile even though they have the same exact source string, and path type 1 works the same as 2 in most other instances intuitively in most(?) programming contexts, should this be considered a bug?
Either way, this should help some people (and future me).