user3352495 user3352495 - 27 days ago 8
iOS Question

iOS Archive Fails: Command /usr/bin/ditto failed with exit code 1

I am trying to archive my iOS project and it is failing on the ditto command, after it has compiled every file, supposedly.

The entire logfile is ~200MB with sensitive information, so I will not post it.
This is the failing line of output.

Ditto /Users/iosjenkins/Library/Developer/Xcode/DerivedData/MyApp-dikjbbwmnvizjmdpbkrxixczfmqo/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/MyApp.build/Development-iphoneos/MyApp.build/DerivedSources/MyApp-Swift.h /Users/iosjenkins/Library/Developer/Xcode/DerivedData/MyApp-dikjbbwmnvizjmdpbkrxixczfmqo/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/MyApp.build/Development-iphoneos/MyApp.build/Objects-normal/armv7/MyApp-Swift.h
cd /Users/iosjenkins/.jenkins/jobs/MyAppDevelopmentNightly/workspace/MyApp
export PATH="/Applications/Xcode7.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode7.2.1.app/Contents/Developer/usr/bin:/usr/local/bin/:/usr/bin:/bin:/usr/sbin:/sbin"
/usr/bin/ditto -rsrc /Users/iosjenkins/Library/Developer/Xcode/DerivedData/MyApp-dikjbbwmnvizjmdpbkrxixczfmqo/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/MyApp.build/Development-iphoneos/MyApp.build/Objects-normal/armv7/MyApp-Swift.h /Users/iosjenkins/Library/Developer/Xcode/DerivedData/MyApp-dikjbbwmnvizjmdpbkrxixczfmqo/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/MyApp.build/Development-iphoneos/MyApp.build/DerivedSources/MyApp-Swift.h
ditto: can't get real path for source '/Users/iosjenkins/Library/Developer/Xcode/DerivedData/MyApp-dikjbbwmnvizjmdpbkrxixczfmqo/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/MyApp.build/Development-iphoneos/MyApp.build/Objects-normal/armv7/MyApp-Swift.h'
Command /usr/bin/ditto failed with exit code 1


My project is very large ~ 1000 swift files. Each line of output of the xcodebuild compilation is 110k characters of text.

Answer
Comments