Audiokit: Swift 5.1 (Xcode 11) support

Created on 4 Jun 2019  路  29Comments  路  Source: AudioKit/AudioKit

I'm sure this is going to be worked on soon, just adding this here for reference. :)

Most helpful comment

I think we should start making Xcode 11 builds available via our staging pods soon - there'll be more work involved to provide proper support (for SwiftUI and XCFrameworks) but hopefully that's a good first step.

All 29 comments

Probably will look at this over the weekend or next week.

Not sure if this would be best suited for a subsequent release, but the new XCFramework support in Xcode 11 for distributing frameworks for multiple platforms (specifically UIKit for Mac) would be super useful for clients porting their iPad apps to macOS.

@colinhumber Yeah, that definitely caught our resident release czar's attention (@megastep)

I don't know a ton about the compiler, but it sounds like these new framework features would also provide forward compatibility with new versions of the Swift compiler (big win!)

Swift Package Manager support would also be great.

The SPM would be great, but I think it was impossible since SPM doesnt support mixed language source files. I've tried, but there's too many differents source files langages (cpp, mm, swift).

```
'AudioKit-iOS' ~/Sources/AudioKit/AudioKit/iOS/AudioKit-iOS: error: target at '~/Sources/AudioKit/AudioKit/iOS/AudioKit-iOS/Sources/AudioKit-iOS' contains mixed language source files; feature not supported

I'm getting an error in Xcode 11: Module compiled with Swift 5.0.1 cannot be imported by the Swift 5.1 I'm not sure if this is an audiokit issue or not though

@killerham The AudioKit framework needs to be compiled against the Swift 5.1 compiler to work in Xcode 11. This issue is here to track that progress. They're working on a fix. :D

Any update on this? We're beginning to integrate some iOS 13 features internally and currently aren't able to build using XCode beta.

Thanks!

Would love to hear an update about this.

I think we should start making Xcode 11 builds available via our staging pods soon - there'll be more work involved to provide proper support (for SwiftUI and XCFrameworks) but hopefully that's a good first step.

Just released a pre-release build made with Xcode 11 in our staging repo:

https://github.com/AudioKit/Specs/

You need to explicitly use version 4.8.b1 to get it.

Thanks for all the hard work on this!

Awesome, thanks @megastep :D!

Can we get the pre-release build on the staging repo for Xcode 11 Beta 4?

Did they break Swift between betas now? 馃憥

The error is just "compiled with a previous version of the compiler" -- they made beta 4 incompatible with previous beta releases. just recompiling should work, i guess?

Yeah well since we're just releasing AK 4.8 I'll make a new beta build, hoping that the Travis Xcode 11 image is up to date...

Many thanks!

Travis is still on beta 2 so I guess I'll have to make a manual build on my Mac.

I replaced the archive for v4.8.b1 with binaries built with beta 4 of Xcode 11. Make sure to clean your pod cache and try to reinstall it.

That worked! Thanks a lot :-)

@megastep Unfortunately, Xcode 11b6 released yesterday updated the compiler again and the previous binaries don't build. :\

Dammit, and I had just made a new build for beta 5! I'll update it with beta 6 later today

I've updated staging release v4.8.1.b1 with binaries built with beta 6. Make sure to clear your pod cache to get it.

@megastep Could you please make a build for XCode 11.0 Golden Master that was released yesterday? That would be great, thank you!

Oh yeah, I'm gonna be needing that myself....

Although to be fair, my own app seems to build just fine with the current 4.8 pod (not the beta ones) in the GM.

Although to be fair, my own app seems to build just fine with the current 4.8 pod (not the beta ones) in the GM.

~Not for me. It's probably cached for you~

~@megastep are you able to make a new build with GM?~

Edit: 4.8.1.b1 works on GM my bad

Was this page helpful?
0 / 5 - 0 ratings

Related issues

impmaarten picture impmaarten  路  5Comments

socialvanana picture socialvanana  路  7Comments

JerrySQian picture JerrySQian  路  6Comments

vojtabohm picture vojtabohm  路  8Comments

crashingbooth picture crashingbooth  路  4Comments