Audiokit: Swift 5.2 (Xcode 11.4b) support

Created on 13 Feb 2020  路  13Comments  路  Source: AudioKit/AudioKit

I'm sure this is on your radar already. Xcode 11.4 includes Swift 5.2 and the current release was built with Swift 5.1.2.

Thanks, as always, for all the hard work!

Most helpful comment

Yes, and actually the next build of AudioKit will enable Swift library evolution, which in theory should make the framework automatically compatible among future versions of Swift.

All 13 comments

Yes, and actually the next build of AudioKit will enable Swift library evolution, which in theory should make the framework automatically compatible among future versions of Swift.

馃檶You all rule. Thanks!

Hi, the instructions (https://github.com/audiokit/AudioKit/blob/master/Frameworks/README.md) are updated? Trying to import to a new project but I get module not found for audiokit, I've double checked the release notes and issues here which seems that Xcode 11 / swift 5.1 is supported. So it seems that there's something I don't know about or can't find docs about it. Thank you!

@heldrida You're probably missing a crucial step. Where are you getting AudioKit from? You either need to manually build the frameworks with the build_frameworks.sh script or use a binary distribution (either via the zips or through CocoaPods) and then make sure your project is referencing the files in the correct location.

@megastep thanks for looking! I've tried the binary version available in the instructions; also build it myself without success (https://stackoverflow.com/questions/61212246/how-to-include-audiokit-4-in-a-new-project-xcode-11-and-swift-5-1)

Regarding your comment "then make sure your project is referencing the files in the correct location"
apart from the provided instructions, the latest version of Xcode places the "added framework" (as in "project configuration > general tab > frameworks, libraries and embedded content") in the directory "Frameworks > AudioKit.framework" (in the sidebar / Xcode navigator).

I just responded to your post on Stack Overflow. You should not try to embed static frameworks, so I suggest you try to disable that.

@megastep thanks for taking the time to help. I've tried that before and tried it again now, but still get the same issue No such module 'AudioKit', I'm afraid: Xcode Version 11.4 (11E146) and Apple Swift version 5.2 (swiftlang-1103.0.32.1 clang-1103.0.32.29)

Does it actually fail to build your project? Xcode is so buggy that sometimes it shows errors in the IDE that don't actually happen. Sometimes even restarting Xcode helps :(

I can open and build one of the example projects, let's say the "Hello world".
But I spent hours trying to run the most basic instructions for Xcode 11 (then updated to latest) and swift 5.1 (now 5.2, I think I started with 5.1), and no, it doesn't compile No such module 'AudioKit'

the only thing that is close to AudioKit is CoreAudioKit

I found a solution ( https://stackoverflow.com/questions/61212246/how-to-include-audiokit-4-in-a-new-project-xcode-11-and-swift-5-1/ )

Moved the file under the project root and changed the target and location to be relative to the project. I haven't fully tested but I don't get the "no such module audiokit" now. Not sure if this is a good practice. But guess not...

I've also tested by modifying the build settings, removed all sub directories to exclude in recursive searches extensions; and add the relative path where the audiokit.framework can be found to the framework search paths. The autocomplete works, but I still get the error No such module 'AudioKit'. So, this far the only option that works is the comment before,

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mahal picture mahal  路  7Comments

trevor-sonic picture trevor-sonic  路  5Comments

minayko picture minayko  路  4Comments

crashingbooth picture crashingbooth  路  4Comments

Moriquendi picture Moriquendi  路  4Comments