Page 1 of 1

Deployment problems in iOS

PostPosted: Wed Mar 29, 2017 2:08 am
by chaplin.u
Hi !
In my application I need load picture so I use this code :
1.
String Result = "";
Result = System::Ioutils::TPath::Combine(System::Ioutils::TPath::GetDocumentsPath(),"Image.png");
Image1->Bitmap->LoadFromFile(Result);

2. I have added #include <System.IOUtils.hpp> to h file
3. In deployment I added file with remote path StartUp\Documents\ . I see this file in package.

As you can see everything as in https://community.embarcadero.com/article/articles-tutorials/151-ui/927-deploying-and-accessing-local-files-on-ios-and-android and for Android it work but in iOS32( iPhone 4s) and iOS64( iPhone 6) not work !
From my investigation I see that default paths changed since iOS8 from /var/mobile/Applications/<application ID> to
/var/mobile/Containers/Data/Application/<application ID>
So I receive this message (see below).
Are anybody know about issue or it only my problem ?

I work on Berlin Update 1.

Re: Deployment problems in iOS

PostPosted: Wed Mar 29, 2017 10:03 am
by rlebeau
chaplin.u wrote:From my investigation I see that default paths changed since iOS8 from /var/mobile/Applications/<application ID> to
/var/mobile/Containers/Data/Application/<application ID>
So I receive this message (see below).


TPath queries the OS for the actual path. If iOS is not reporting the path you are expecting, that is an iOS issue, not a FMX issue. Unless the Deployment Manager is deploying the file to the wrong path to begin with, in which case that is an Embarcadero issue. Either way, I would suggest you file a bug report to Quality Portal so Embarcadero is aware of it.

Re: Deployment problems in iOS

PostPosted: Thu Mar 30, 2017 2:35 pm
by chaplin.u
I found that files is not in Documents folder. I can ask support but you know that useless...
I need to understand if it`s only my problem.
Can you to check that it work on your PC ?

Re: Deployment problems in iOS

PostPosted: Thu Mar 30, 2017 10:27 pm
by rlebeau
chaplin.u wrote:Can you to check that it work on your PC ?


I don't have an iOS device to test with.

Re: Deployment problems in iOS

PostPosted: Mon Apr 24, 2017 11:33 am
by chaplin.u
I found problem. It`s bug in deployment. File is not deployed to "Documents" because underscore symbol _
:evil: