I am having problems with automated jenkins based on mac pro using Xcode 8.1 with xcodebuild.
I need my setup:
- Pull the code for git (working)
- Archive (archive failure)
- Create .ipa
- TestFairy Deployment
My script archive is not working, but it still creates the ProjectName-Daily.xcarchive file:
xcodebuild -workspace ProjectName.xcworkspace -scheme ProjectName-Daily -configuration Release clean archive -archivePath ~/ProjectName-Daily.xcarchive DEVELOPMENT_TEAM=1234567890
The following could not be executed on the terminal without error description. I also tried -verbose and no luck

Then I tried to create it manually and get the assembly with errors:

Then I went to archive the assembly on Xcode, and it worked just fine. Not sure why the script is not working on the CI machine. Also tried the script on my personal macbook pro and it worked fine.
Any thoughts?
source share