I\'m trying to build my application using jenkins pipeline using shell command. Below is the command i\'m using to build the app.
sh \'xcodebuild -workspace proj
Had this problem as well on one Jenkins build slave dedicated to building one specific app (for iOS and Android). The Mac was on Mojave and Xcode 10.1
The fix appeared to be logging on to the Mac, and exporting the archive created by Jenkins using the Xcode UI, not xcodebuild. After doing that, the next Jenkins build when through without a problem. I say appeared to be because I didn't do anything else to the Jenkins job or the slave, and it had been failing consistently before that. Seems odd, but there you have it.
This specific problem didn't occur on build slaves building other apps, but these other slaves, while using Xcode 10.1, were on High Sierra. We have had other odd behaviors on all iOS builds since Apple merged Apple Developer and App Store Connect, however.