Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AudioKit 4.11.2 Playgrounds: "No such module AudioKitPlaygrounds"

Tags:

xcode

audiokit

It has been a year since updating so I downloaded AudioKit 4.11.2 yesterday. I built all of the frameworks, including the AudioKit and AudioKitUI xcframeworks.

Then I began playing with the Playgrounds. Right away Xcode tells me the build failed because it can't find the AudioKit frameworks. It appears that the Search Paths that are set in the original project file need tweaking so I set it to "$(inherited)../Frameworks".

Now it builds but still will not run, saying on the import AudioKitPlaygrounds statement that there is No such module AudioKitPlaygrounds.

Odd, because that is the target of the build and it exists in the Derived Data Products folder.

Searching through StackOverflow shows that AudioKit has had similar problems like this in the past but none of the proposed solutions seemed relevant to my situation.

What other tricks are necessary to get the Playgrounds running? Shouldn't it build and run straight out of the box without messing with the project search paths?

My environment is: macOS 10.15.6 MacBookPro Xcode 12.0.1

Successful Build but no such module?

Search Path for Frameworks

Derived Data

like image 550
WholeCheese Avatar asked Mar 03 '23 00:03

WholeCheese


1 Answers

I ran through a similar problem with macOS 10.15.7, XCode 12.1 and AudioKit 4.11.2.

I got the same “No such module AudioKitPlaygrounds” message.

The "Build Active Scheme" option was unchecked in my File Inspector >> Playground Settings, so I checked it, rebuild the "Introduction and Hello World" .playground and it worked.

Edit (04/15/2021): David Thery gave a more complete answer in the following answers.

like image 114
Miguel de Sousa Avatar answered Mar 27 '23 23:03

Miguel de Sousa