'AudioKit Cookbook v.5 build fails (xcode 13.2.1)

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):

  • No template named num_get (istream)
  • No template named bitset (istream)
  • Implicit instantiation of undefined template std::ostream (sstream, istream)
  • Invalid operands to binary expression ('std::ostringstream' (aka 'basic_ostringstream') and 'const char [60]') (instrmnt.h, Filter.h, Whistle.cpp)
  • Invalid operands to binary expression ('std::ostream' (aka 'basic_ostream') and 'char') (Stk.h)

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:

  • Cookbook (?, 5/2/2022 commit)
  • AudioKit 5.4.1
  • AudioKitEx 5.4.0
  • AudioKitUI (?, 5/3/22 commit)
  • DunneAudioKit 5.4.1
  • KissFFT 1.0.0
  • SoundpipeAudioKit 4.4.1
  • SporthAudioKIt 5.3.1
  • STKAudioKit 5.3.0


Solution 1:[1]

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

Solution 2:[2]

A fresh install of Xcode did the trick. Go figure. Thanks everyone for your suggestions and information.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Nick C.
Solution 2