// if it fails to get an existing dictionary, create a new one.
if (nsDictionary == null) {
Gdx.app.debug("IOSApplication", "NSDictionary not found, creating a new one");
nsDictionary = new NSMutableDictionary();
boolean fileWritten = nsDictionary.writeToFile(finalPath, false);
if (fileWritten)
Gdx.app.debug("IOSApplication", "NSDictionary file written");
else
Gdx.app.debug("IOSApplication", "Failed to write NSDictionary to file " + finalPath);
}