Update resourcePath usage for iOS

TODO: do the same with Android