I’m having a problem with the Simulator and downloading files from my server.
On launch, my games download a couple of files from my server- daily puzzles, ad information, etc. It seems like once the simulator has downloaded a file from the server, it caches it somewhere and doesn’t download fresh copies.
For example:
- I launch one of my games in the simulator and it downloads the daily puzzle.
- I make a change to the daily puzzle and upload a new file to my server.
- I delete the puzzle file from the app’s sandbox folder on my hard drive.
- I relaunch the app in the simulator and the original puzzle file is back in the tmp directory- not the new file. Where it came from, I don’t know!
- If I launch the app on device, it will show the new file, so I know the file on the server has been updated.
- If I launch the app on an Android device, clear the cache, upload a changed puzzle file and then relaunch the app, the new puzzle file shows up no problem. This issue is limited to the simulator.
Does anybody have any insight into this? It’s making me feel like a crazy person. I’ve tried quitting the simulator, but it doesn’t help. I haven’t tried restarting my Mac, but that’s a terrible solution, so I hope it doesn’t come to that.