Reputation: 7187
Trying Xcode 10 GM Seed (10A254a) with our project and the build failed with message "command CompileSwiftSources failed with non-zero exit code".
So far I have tried: 1. Clean and Deep Clean (shift+alt+cmd+k) 2. Delete the DerivedData folder 3. Restart Xcode 4. Restart laptop
all failed to address this issue.
Upvotes: 2
Views: 1651
Reputation: 7187
Just as a reference to myself and others who might encounter the same, my problem was eventually resolved after we pinpointed our problem to a third party SDK. Their investigation upon our request turns out, according to their description, to be: Swift ABI (application binary interface) has changed in version 4.2, thus causing incompatibility of the SDK.
After they modified their SDK our project compiled correctly in Xcode 10 seed and official release with both Legacy Build System, and New Build System's Incremental (default) compilation mode.
So Xcode 10 itself is fine, the only complaint is the error message is not informative enough about what's exactly wrong.
Upvotes: 1
Reputation: 776
I had the same issue.
When I switched to the Release build configuration it worked. After switching the Debug Compilation Mode to Whole Module from Incremental, both Debug and Release work.
EDIT: After migrating to Swift 4.2 Compilation Mode Incremental now works. However, now the simulator black screens as soon as my app launches.
EDIT2: The black screen issue was something else entirely.
Upvotes: 4