Search code examples
swiftaudiokitxcode12

AudioKit Xcode 12 beta version


Just downloaded Xcode 12 beta, and have tried to install the AudioKit framework, have set the 'other linker flags' to include '-lc++' and made sure the added framework was set to "embed and sign"

when I start an AudioKit main class:

import Foundation
import AudioKit
class AudioClass{

init() {
   // would normally start AudioKit/mixer/single instrument in here
}
}//end simple class

I get the following error message after I try to compile:

Failed to build module 'AudioKit' from its module interface; the compiler that produced it, 'Apple Swift version 5.2 (swiftlang-1103.0.32.1 clang-1103.0.32.29)', may have used features that aren't supported by this compiler, 'Apple Swift version 5.3 (swiftlang-1200.0.16.13 clang-1200.0.22.25)' I.e something a version update will fix in time - does anybody know when AudioKit for Xcode 12/iOS 14 will be out?


Solution

  • Your best bet with the Xcode 12 beta is to use the beta packages for AudioKit v5. These will support XCFrameworks via either CocoaPods or SwiftPM, which should not give you these errors.

    You can find instructions for CocoaPods here (use version 5.0.b1 explicitly), and for SwiftPM here (with the master branch).

    Note that there's been some significant API changes so you probably will need to update your change. The biggest, most visible one is the AKSettings class renamed to AKManager.