Sorry forgot to put the actual error when doing it into Jenkins:

Check dependencies
10:55:07  Code Signing Error: There are no accounts registered with Xcode. Add 
your developer account to Xcode
10:55:07  Code Signing Error: No profiles for 'com.mycie.my-app' were found:  
Xcode couldn't find any iOS App Development provisioning profiles matching 
'com.mycie.my-app'.
10:55:07  Code Signing Error: Code signing is required for product type 
'Application' in SDK 'iOS 13.4'
But the account is prevent into xcode under that user and a terminal can 
perform the same action without issue. Is the bash inside Jenkins running with 
some different env or restriction? Not another one of those security road block 
from Jenkins please, I will try to start a python script to do the same command 
to see if this pass somehow.


From: [email protected] <[email protected]> On 
Behalf Of Jérôme Godbout
Sent: April 13, 2020 11:02 AM
To: Jenkins Users <[email protected]>
Subject: Jenkins and xcodebuild iOS signing

Hi.
I’m having a hard time to finish my scripted pipeline to automate the iOS 
building of application from unity. I manage to do into bash console, but for 
some reason into Jenkins it failed with xcodebuild with codesign.
Executing the following with the same user as Jenkins run into a bash console 
work, but inside Jenkins the code signing never work (bad login, cannot find 
profiles…). I have unlock the keychains (also set it to be unlock for 120 min 
until lock again). I make the private certificate key allowed by all 
applications. What am I missing to make this work inside Jenkins?! anybody 
manage to do it?

security list-keychains -s `security list-keychains | xargs` my.keychain-db
security unlock-keychain my.keychain-dbxcodebuild -project 
Unity-iPhone.xcodeproj -configuration Release -scheme Unity-iPhone 
-allowProvisioningUpdates build
xcodebuild -project Unity-iPhone.xcodeproj -configuration Release -scheme 
Unity-iPhone -allowProvisioningUpdates -archivePath ~/my.xcarchive archive
xcodebuild -exportArchive -allowProvisioningUpdates -archivePath ~/my.xcarchive 
-exportPath ~/my.ipa -exportOptionsPlist ~/exportOptionsAdHoc.plist

Damn why it work in a normal bash and Jenkins toys around with some env 
settings it seem. How painful something that simple can be…

Thanks,
Jerome
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/YQXPR01MB32222E3FA54A1C0305B685BACDDD0%40YQXPR01MB3222.CANPRD01.PROD.OUTLOOK.COM<https://groups.google.com/d/msgid/jenkinsci-users/YQXPR01MB32222E3FA54A1C0305B685BACDDD0%40YQXPR01MB3222.CANPRD01.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/YQXPR01MB3222CCE57D52117CEE617936CDDD0%40YQXPR01MB3222.CANPRD01.PROD.OUTLOOK.COM.

Reply via email to