Thursday, May 9, 2024
HomeiOS DevelopmentiOS Construct fail solely when run via Jenkins

iOS Construct fail solely when run via Jenkins


Now we have been utilizing our construct setup for few years now. Nonetheless we’re getting an error in out iOS construct solely when it run via Jenkins for few days now.

Out setup is as under.

  • CICD – Jenkin Jobs
  • Jenkins node- operating on an iMac x86_64(Mac OS Ventura 13.6, Xcode- 15.1, iPhone SDK 17.2)
  • Agent connection – SSH
  • Construct script – Utilizing Fastlane (newest model 2.2.0)

There was no current modifications performed to the Jenkins node or the connection mechanism lately.

Once we execute the Jenkins job it errors out throughout Archiving stage indicating following error

ARCHIVE FAILED **

The next construct instructions failed:
PhaseScriptExecution [CP] Embed Pods Frameworks /Customers/myjenkinsuser/Library/Developer/Xcode/DerivedData/PoPoc-ghliacqvmeaczodimbswpjdefbrk/Construct/Intermediates.noindex/ArchiveIntermediates/PoPoc/IntermediateBuildFilesPath/PoPoc.construct/Launch-iphoneos/PoPoc.construct/Script-9B3D469C72BEFC2B2114A431.sh (in goal ‘PoPoc’ from challenge ‘PoPoc’)
(1 failure)
[23:16:36]: [31mExit status: 65[0m

The interesting thing is when we run the same build commands from the Jenkins node via a terminal the build succeeds. Also when build through Xcode (within the Jenkins node) it completes without any errors.

Following was attempted:

  • Clearing the workspace before running the Jenkins job
  • Clearing out the Derived data folder
  • Pod deintegrate and POD install

At the moment we execute the fastlane script from within the Jenkins Node to create builds but this is not ideal as the access to the node has been granted only to a limited number of people.

Glad if anyone can point us in the direction to investigate this as we are running out of ideas.



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments