added resource path for iOS platform, renamed resorce path variable