Deployment problems in iOS

This is the forum for miscellaneous technical/programming questions.

Moderator: 2ffat

Deployment problems in iOS

Postby chaplin.u » Wed Mar 29, 2017 2:08 am

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.
Attachments
pic.JPG
pic.JPG (19.34 KiB) Viewed 3946 times
chaplin.u
 
Posts: 4
Joined: Wed Mar 29, 2017 1:43 am

Re: Deployment problems in iOS

Postby rlebeau » Wed Mar 29, 2017 10:03 am

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.
Remy Lebeau (TeamB)
Lebeau Software
User avatar
rlebeau
BCBJ Author
BCBJ Author
 
Posts: 1457
Joined: Wed Jun 01, 2005 3:21 am
Location: California, USA

Re: Deployment problems in iOS

Postby chaplin.u » Thu Mar 30, 2017 2:35 pm

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 ?
chaplin.u
 
Posts: 4
Joined: Wed Mar 29, 2017 1:43 am

Re: Deployment problems in iOS

Postby rlebeau » Thu Mar 30, 2017 10:27 pm

chaplin.u wrote:Can you to check that it work on your PC ?


I don't have an iOS device to test with.
Remy Lebeau (TeamB)
Lebeau Software
User avatar
rlebeau
BCBJ Author
BCBJ Author
 
Posts: 1457
Joined: Wed Jun 01, 2005 3:21 am
Location: California, USA

Re: Deployment problems in iOS

Postby chaplin.u » Mon Apr 24, 2017 11:33 am

I found problem. It`s bug in deployment. File is not deployed to "Documents" because underscore symbol _
:evil:
chaplin.u
 
Posts: 4
Joined: Wed Mar 29, 2017 1:43 am


Return to Technical

Who is online

Users browsing this forum: No registered users and 15 guests