I have spent the last few months converting my project with approximately 1,500 source code files into Swift. It was incredibly tiring, but I finally did it. It works well, builds well, but:
When I try to archive the project, the Xcode error occurs with the following error:
ditto: can't get real path for source '/Users/USER/Library/Developer/Xcode/DerivedData/
APP-dtsbrzschafjiubelceuxtfwstqf/Build/Intermediates/ArchiveIntermediates/APPCore/
IntermediateBuildFilesPath/APPCore.build/Release/APPCore.build/Objects-normal/
x86_64/APPCore.swiftmodule''
Command /usr/bin/ditto failed with exit code 1
APP
is an application and APPCore
is an embedded infrastructure.
What I tried:
- cleaning up the project (which really does not affect archiving, since the archive is always compiled from scratch)
- using Xcode 7.2 beta (released a few days ago)
- make as many ads public as possible
- disabling any Swift optimizations for release build configuration
- creating a framework
APPCore
as a release - which actually works (!) - and (!) creates a file.swiftmodule
. , , , - , , .
, - , . , , ...
, , , , . , 25KLOC, , , ...