I am integrating a game made with Cocos2d-js into my native app with xcode7. In order to do that, you need to import some resources folder to your xcode project and also a file called project.json. On this project.json you say where your resources files are:
...
"jsList" : [
"src/resource.js",
"src/app.js"
]
...
As it is written above, the app will look for the "src folder" on your project folder however I need to modify this to look for the src folder on my ios app documents folder (The app will download the resources files to this folder where they are ready. So the user will have access to new resources without update the app) I was thinking about change the path to something like this, where "Documents" is a path to get Documents folder:
...
"jsList" : [
"*Documents*/src/resource.js",
"*Documents*/src/app.js"
]
...
But It does not work.
I have also tryied with the following route (I know that this will only work with my simulator) but it does not find anything. /Users/ji/Library/Developer/CoreSimulator/Devices/4798B94F-0D14-4F2C-BDFD-783D43AE7AAC/data/Containers/Data/Application/FCAE6A4D-501D-46A0-A5CF-E5B46E899485/Documents
Does anyone have an idea about how the path is to access to Documents folder.
Thanks in advance for your help.