AudioKit: Module compiled with Swift 5.0.1 cannot be imported by the Swift 5.1 compiler

Unable to import AudioKit into an Xcode 11 project when using the vendored_frameworks in CocoaPods.

Xcode 11 gives the following error:

Module compiled with Swift 5.0.1 cannot be imported by the Swift 5.1 compiler: /Users/<snipped>/Pods/AudioKit/iOS/AudioKit.framework/Modules/AudioKit.swiftmodule/x86_64.swiftmodule

I assume the supplied framework needs to be rebuilt using the Xcode 11 GM?

Xcode Version: Xcode 11 (11A419c)

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 24 (13 by maintainers)

Most upvoted comments

Version 4.9 was just pushed out, including a pod built with Xcode 11 GM 2.

As soon as possible!

Man, we have our hands full just with Xcode11, never mind 13. šŸ˜‰

@DaveWoodCom I was facing the same issue for that I have updated my local copy of Swift as well you can do that in XCode’s Preferences under Location ->

@aboelbisher, the mistake that I made, was having Xcode’s command line tools pointing to the Xcode 10.3 version, instead of Xcode 11. After updating its path with sudo xcode-select -switch /Applications/Xcode.app, I was finally able to pod update to AudioKit 4.9. Prior to that change, I was only able to install AudioKit 4.7.1, which isn’t compatible with Xcode 11 (hence the ā€œModule compiled with Swift 5.0.1 cannot be imported by the Swift 5.1 compilerā€ error).

Don’t forget to run pod update. Please let us know if this helps.

@aure @DaveWoodCom Do you know what the timeline is for issuing a release that fixes this issue? This will probably become a bigger issue next week, once Xcode 11 rolls out as the final public version.

Hi did any one found a fix (workaround) for this ?

Lol oops.

Would be great to know if anyone has a workaround for Cocoapods users in the meantime. We have a non-AudioKit iOS 13 bug that we are blocked from working on at the moment since we can’t compile on Xcode ~13~ 11.

It’s weird that I’ve had no issues linking with the 4.8 pod in Xcode 11 GM. In any case, we should probably push out 4.8.1 built with Xcode 11 at some point soon…