Greetings:
On my Mac, my documents special folder is /Users/paulr/Documents
But if I test an app on the iOS Simulator, this path gets changed to:
/Users/paulr/Library/Application Support/Simulator/5.1/Applications/long-hex-nbr/Documents
My question is: Does the "long-hex-nbr" part remain constant throughout the life of my testing of this app, or will it change when I least expect it?
TIA
--paul
iOS Simulator "documents" path...
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: iOS Simulator "documents" path...
Is it exactly long-hex-nbr or something like this 3DE34D29-EB76-449C-8892-FD752DC9F42B?
Just out of curiosity, but probably second one, right?
Anyways, it doesn't change until you delete your app via Finder or within iPhone Simulator.
Regards,
~ Ender Nafi Elekcioglu
Just out of curiosity, but probably second one, right?
Anyways, it doesn't change until you delete your app via Finder or within iPhone Simulator.
Regards,
~ Ender Nafi Elekcioglu
~... together, we're smarter ...~
__________________________________________
macOS Sierra • LiveCode 7 & xCode 8
__________________________________________
macOS Sierra • LiveCode 7 & xCode 8
Re: iOS Simulator "documents" path...
Yes, the second one. A long hex number with dashes.endernafi wrote:Is it exactly long-hex-nbr or something like this 3DE34D29-EB76-449C-8892-FD752DC9F42B?
Just out of curiosity, but probably second one, right?
Anyways, it doesn't change until you delete your app via Finder or within iPhone Simulator.
Regards,
~ Ender Nafi Elekcioglu
I wasn't sure if it would change, so I'm glad to hear it won't!
Thanks...
--paul
Re: iOS Simulator "documents" path...
True, but your question implies that you're hard coding a file path with that, which will fail when you put your app on a real device. Just use specialFolderPath("documents"), or something like:
Code: Select all
put the documents folder into tDocumentPath
Re: iOS Simulator "documents" path...
Thanks, but no, I wanted to put some files into the documents folder, for testing.CALL-151 wrote:True, but your question implies that you're hard coding a file path with that, which will fail when you put your app on a real device. Just use specialFolderPath("documents"), or something like:Code: Select all
put the documents folder into tDocumentPath
--paul