Watch, Follow, &
Connect with Us

Welcome, Guest
Guest Settings
Help

Thread: IOS deployment failed


This question is answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 8 - Last Post: Mar 9, 2017 11:24 PM Last Post By: Erwin Sienknecht Threads: [ Previous | Next ]
Erwin Sienknecht

Posts: 6
Registered: 5/5/06
IOS deployment failed  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 22, 2017 4:03 AM
i have a strange issue whene deploying my app to IOS 10.0

Environment Variable SVNDir Points to Z:\SVN\DX10

dproj is: $(SVNDir)\FmxSource\TermineApp\Termine.dproj
Source files: $(SVNDir)\FmxSource\TermineApp\Source\*
Target Output is $(SVNDir)\_bin\$(Platform)\$(Config)
Units Output is $(SVNDir)\_units\$(Platform)\$(Config)

compiling (IOS 64) works fine

when i deploy my Project the
- paclient first deploys all files, Images...
- after that the App is signed and packed

after that there is a copy from Mac to Develop-PC and there is a (wrong!) target Path:

c:\program files (x86)\embarcadero\studio\18.0\bin\paclient.exe -u8 --get="Termine.ipa,Z:\SVN\DX10\FmxSource\TermineApp\z:\svn\dx10\_units\iOSDevice64\Release
" IOS
[PAClient Fehler] "paclient" exited with code 1.

correct would be this (tried in cmd Shell):
c:\program files (x86)\embarcadero\studio\18.0\bin\paclient.exe -u8 --get="Termine.ipa,z:\svn\dx10\_units\iOSDevice64\Release\" IOS

my questions:

what is going wrong here?
where can i Change this target Directory, or why is .dproj Path part of the (wrong) Destination?

i hope you understany my terrible english... :-)

Dave Nottage

Posts: 1,508
Registered: 1/7/00
Re: IOS deployment failed  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 22, 2017 11:49 AM   in response to: Erwin Sienknecht in response to: Erwin Sienknecht
Erwin Sienknecht wrote:

my questions:

what is going wrong here?
where can i Change this target Directory, or why is .dproj Path part of the (wrong) Destination?

i hope you understany my terrible english... :-)


Your English is fine :-)

Just off the top of my head: try without using underscores in the folder names.

--
Dave Nottage [MVP, TeamB]
Hints, tips and tricks at: http://www.delphiworlds.com/blog
Erwin Sienknecht

Posts: 6
Registered: 5/5/06
Re: IOS deployment failed  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 23, 2017 1:17 AM   in response to: Dave Nottage in response to: Dave Nottage
no Change...

any other ideas?

c:\program files (x86)\embarcadero\studio\18.0\bin\paclient.exe -u8 --get="Termine.ipa,Z:\SVN\DX10\FmxSource\TermineApp\z:\svn\dx10\units\iOSDevice64\Release
" IOS

Compiler Message Output: (all after the Target_DeployFiles entries)
==========================================================================
Target _Codesign:
c:\program files (x86)\embarcadero\studio\18.0\bin\paclient.exe -u8 --codesign="Termine.app,'iPhone Distribution: System 2000 Kopp GmbH (29BBMS383G)',Termine.app\..\Termine.entitlements" IOS
Platform Assistant Client Version 9.0.2.03
Copyright (c) 2010-2016 Embarcadero Technologies, Inc.

Verbindung zu 192.168.10.245 auf Port 64211 wird hergestellt...
Target _CreateBundle:
c:\program files (x86)\embarcadero\studio\18.0\bin\paclient.exe -u8 --ipa="Termine.app,Termine.ipa,'iPhone Distribution: System 2000 Kopp GmbH (29BBMS383G)','/Users/erwin/Library/MobileDevice/Provisioning Profiles/f4b852fc-7f6f-448f-b1fa-151447358703.mobileprovision'" IOS
Platform Assistant Client Version 9.0.2.03
Copyright (c) 2010-2016 Embarcadero Technologies, Inc.

Verbindung zu 192.168.10.245 auf Port 64211 wird hergestellt...
Target _Bundle:
c:\program files (x86)\embarcadero\studio\18.0\bin\paclient.exe -u8 --get="Termine.ipa,Z:\SVN\DX10\FmxSource\TermineApp\z:\svn\dx10\units\iOSDevice64\Release
" IOS
Platform Assistant Client Version 9.0.2.03
Copyright (c) 2010-2016 Embarcadero Technologies, Inc.

Verbindung zu 192.168.10.245 auf Port 64211 wird hergestellt...
Datei(en) wird (werden) kopiert...
Fehler: E0009 Datei "\\?\Z:\SVN\DX10\FmxSource\TermineApp\z:\svn\dx10\units\iOSDevice64\Release\Termine.ipa" kann nicht erstellt werden. Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch
Insgesamt kopierte Datei(en): 1 Datei(en) 16.049.624 Byte
c:\program files (x86)\embarcadero\studio\18.0\bin\CodeGear.Deployment.targets(593,5): error MSB6006: "paclient" exited with code 1.
Done building target "_Bundle" in project "Termine.dproj" -- FAILED.
Done building project "Termine.dproj" -- FAILED.
Build FAILED.
==========================================================================

TIA
Erwin

Dave Nottage

Posts: 1,508
Registered: 1/7/00
Re: IOS deployment failed  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 23, 2017 12:12 PM   in response to: Erwin Sienknecht in response to: Erwin Sienknecht
Erwin Sienknecht wrote:

Source files: $(SVNDir)\FmxSource\TermineApp\Source\*

Is this value actually being used somewhere in your project options? I don't think you can use wildcards like that
anywhere.

--
Dave Nottage [MVP, TeamB]
Hints, tips and tricks at: http://www.delphiworlds.com/blog
Erwin Sienknecht

Posts: 6
Registered: 5/5/06
Re: IOS deployment failed  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 24, 2017 12:29 AM   in response to: Dave Nottage in response to: Dave Nottage
Hi Dave,

ok, i'll explain further...

our SVN Base ist "Z:\SVN\DX10" (on my Machine) - the Environment Variable SVNDir Points to it.

All FMX Applications are under "$(SVNDir)\FmxSource" - every App has its own SubDir under this Path

so the BaseDir for this App "TermineApp" is "$(SVNDir)\FmxSource\TermineApp\" - in this Path we store .dproj, .dpr, .ico, .res ... files

All other Project-related files (*.dfm, *.pas, ...) are located under this Path in "$(SVNDir)\FmxSource\TermineApp\Source"

in Project Options i use
"$(SVNDir)\_bin\$(Platform)\$(Config)" as Targetdirectory
and
"$(SVNDir)\_units\$(Platform)\$(Config)" as Unit Directory

Pictures are located in
"$(SVNDir)\_ressources\Win10image" (i.e. Z:\SVN\DX10\_ressources\Win10image\Logo_57x57.png"


today i will make further Tests without Variables and underscores - and post my results later...

Erwin Sienknecht

Posts: 6
Registered: 5/5/06
Re: IOS deployment failed  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 24, 2017 2:59 AM   in response to: Dave Nottage in response to: Dave Nottage
i've changed ALL Directory Entrys (manually in .dproj File, even the deployfiles)

Z:\TEST\BIN
Z:\TEST\UNITS
Z:\TEST\RESSOURCES

tried again, and still the same Error...

Target _Bundle:
c:\program files (x86)\embarcadero\studio\18.0\bin\paclient.exe -u8 --get="Termine.ipa,Z:\SVN\DX10\FmxSource\TermineApp\Z:\TEST\UNITS
" IOS
Platform Assistant Client Version 9.0.2.03
Copyright (c) 2010-2016 Embarcadero Technologies, Inc.

Verbindung zu 192.168.10.245 auf Port 64211 wird hergestellt...
Datei(en) wird (werden) kopiert...
Fehler: E0009 Datei "\\?\Z:\SVN\DX10\FmxSource\TermineApp\Z:\TEST\UNITS\Termine.ipa" kann nicht erstellt werden. Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch
Insgesamt kopierte Datei(en): 1 Datei(en) 1.385.020 Byte
c:\program files (x86)\embarcadero\studio\18.0\bin\CodeGear.Deployment.targets(593,5): error MSB6006: "paclient" exited with code 1.
Done building target "_Bundle" in project "Termine.dproj" -- FAILED.
Done building project "Termine.dproj" -- FAILED.
Build FAILED.
c:\program files (x86)\embarcadero\studio\18.0\bin\CodeGear.Deployment.targets(593,5): error MSB6006: "paclient" exited with code 1.
0 Warning(s)
1 Error(s)

Where does this Path come from?

"\\?\Z:\SVN\DX10\FmxSource\TermineApp\Z:\TEST\UNITS\Termine.ipa"

Why Delphi combines the Proect-Path ( Termine.drpoj is stored in "Z:\SVN\DX10\FmxSource\TermineApp\") with the Units-Path (Z:\TEST\UNITS\Termine.ipa)

what is this trailing "\\?\" ?

Erwin Sienknecht

Posts: 6
Registered: 5/5/06
Re: IOS deployment failed  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 9, 2017 1:29 AM   in response to: Erwin Sienknecht in response to: Erwin Sienknecht
Ok, after a few Days of testing i finally found a Bug in DX10 - and a solution...

if i use absolute Pathnames OR Variable in Unit-Output-Dir (Project Options) the last step in Deployin (copying .ipa to local path) will go wrong.

my .droj file: Z:\SVN\DX10\FmxSource\Termine\Termine.dproj

if i use "Z:\SVN\DX10\_units\$(Platform)\$(Config)" as unit-output-target the last command to paClient will be:

c:\program files (x86)\embarcadero\studio\18.0\bin\paclient.exe -u8 --get="Termine.ipa,Z:\SVN\DX10\FmxSource\Termine\Z:\SVN\DX10\_units\iOSDevice64\Release
" MacBook

-> look at the Target Directory...!!!

the same with relative Path "..\..\_units\$(Platform)\$(Config)" works fine

c:\program files (x86)\embarcadero\studio\18.0\bin\paclient.exe -u8 --get="Termine.ipa,Z:\SVN\DX10\FmxSource\Termine\..\..\_units\iOSDevice64\Release
" MacBook

Dave Nottage

Posts: 1,508
Registered: 1/7/00
Re: IOS deployment failed
Helpful
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 9, 2017 1:06 PM   in response to: Erwin Sienknecht in response to: Erwin Sienknecht
Erwin Sienknecht wrote:

Ok, after a few Days of testing i finally found a Bug in DX10 - and a solution...

Good to know, thanks. This should be reported as an issue on QP:

http://quality.embarcadero.com

--
Dave Nottage [MVP, TeamB]
Hints, tips and tricks at: http://www.delphiworlds.com/blog
Erwin Sienknecht

Posts: 6
Registered: 5/5/06
Re: IOS deployment failed  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 9, 2017 11:24 PM   in response to: Dave Nottage in response to: Dave Nottage
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02