Reputation: 197
I have been trying to build, to no avail, the Cookbook under Xcode 13.2.1. I get "Analyze Failed" with the following errors:
Stk:
Command CompileSwiftSources failed with a nonzero exit code
Semantic issues (20): (some of the error messages appear with varying array sizes, I quote only one for brevity):
Cookbook Project: 5 semantic issues similar to those above
AudioKit: Command CompileSwiftSources failed with a nonzero exit code
Any suggestions to get this going? I am at a complete loss. I am targeting iOS 15. I'll be happy to provide additional information, if needed.
For reference here are the versions of the Cookbook and dependencies that I'm using:
Upvotes: 1
Views: 183
Reputation: 9431
For me this happened the second time. I was working on a pure C++ command line project in Xcode 14.1 and suddenly couldn't build it anymore. I couldn't build anything if it had #include <iostream>
line.
Reinstalling Xcode fixed this problem. Thanks for the tip! Here is what I did eventually:
Xcode 14.1
from /Applications
/Library/Developer/CommandLineTools
~/Library/Developer/Xcode/DerivedData/
.xip
archive and reinstalled CommandLineTools for Xcode 14.1
from .pkg
Upvotes: 0
Reputation: 197
A fresh install of Xcode did the trick. Go figure. Thanks everyone for your suggestions and information.
Upvotes: 0
Reputation: 266
Does it look like all the Swift Packages were loaded properly? I'm on that same Xcode version so it should be working. Here are a few things to try:
• Select File > Packages > Resolve Package Version
• Delete the app from your device/simulator if you ran it previously on another Cookbook version
• Restart Xcode and select Product > Clean Build Folder
Upvotes: 0