Jump to content
marcin71

Delphi 10.4.2 and iOS - Deployment problem

Recommended Posts

Hello
After updating my environment (Delphi, macOS, and Xcode), I am unable to create an iOS app.
Even an empty newly created project does not successfully complete the Deploy process.
Below I present information about the parameters of my environment and messages returned during the compilation process.
Has anyone had such a problem?
I will be obligated for your help!

 

Environment
Delphi ver 10.4.2

PAServer ver 12.2.10.3
macOS ver 11.2.3
Xcode ver 12.4 (12D4e)

 

Messages
[PAClient Error] Error: E0264 Unable to execute '"/ usr / bin / codesign" --deep -s "Apple Development: Mxxxxxxxxx (xxxxxxxxxx)" -f "/Users/xxxxxxx/PAServer/scratch-dir/Marcin-192.167 .7.14 / iOSTest.app "'(Error 1)
[PAClient Error] Error: E0264 Warning: unable to build chain to self-signed root for signer "Apple Development: Mxxxxxxxxx (xxxxxxxxxx)"
[PAClient Error] Error: E0264 /Users/xxxxxxx/PAServer/scratch-dir/Marcin-192.167.7.14/iOSTest.app: errSecInternalComponent

Share this post


Link to post

Looks like a certificate problem?
Try to launch XCode, create an empty Swift project, save it in a temp place and compile it.
Usually that brings everything you need from your developper account.
Then delete all entitlement files from your Delphi project and try again?
Let us know

Share this post


Link to post

I prepared a clean project in Xcode
To run it, I had to change the certificate settings to default!
The swift project starts correctly on the phone! (is signed)
Xcode has created a new provision profile available for Delphi
In Delphi settings I can see profiles and my developer certificate!
Unfortunately, I receive the message
No provisioning profile found for the selected build configuration

Any further suggestions?
Macbook Reinstallation?

Share this post


Link to post
Posted (edited)

Just to make sure everything is set correctly on your side.
Assuming you're using 10.4.2
* PAServer on the Mac should be version 12.2.10.3

* In Delphi, if you go to Tools > Options... > Deployment > Provisioning
Select Build Type iOS Device 64-bit - Development

You should have something like on the picture attached
If you don't, does it change anything if you switch from Auto in the Provision Profile combo box to anything else that might be there?

All Entitlement files should be removed from your projet before rebuilding it.


Also, if you start a totally blank app and compile it to iOS, does it work?

Screen Shot 2021-03-16 at 08.34.08.png

Edited by sjordi

Share this post


Link to post

Thank you !
It was my mistake !

 

The procedure for rebuilding the certificate by Xcode helped.


Unfortunately, now with Deploy for the Appstore version I have such a problem

[PAClient Error] Error: E0776 2021-03-16 21:38:32.051 xcodebuild[1007:12366] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/__/lkqyx3hs259_5q8dfrjs66880000gp/T/xxxxxxxxxx_2021-03-16_21-38-32.050.xcdistributionlogs'.

Share this post


Link to post

Solved !
In my case, I changed CFBundleName to $(ModuleName)

 

Thread closed !
Thanks for Your help

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×