Improving Swift support and interoperability experience for Android

I just got Swift 6 working on my daily Android CI for the first time since the Foundation rewrite was merged a couple months ago, now back to building and testing the latest release and snapshots. That includes @Marc_Prud_hommeaux's work to get those Swift packages cross-compiled from a macOS host CI using the OSS toolchain, thanks Marc! His company is starting to use Android cross-compilation in the tools they provide to app devs, check it out! I have no affiliation with Marc or his company, just happy to see more devs using Swift on Android. :smiley:

Once I run the compiler validation suite on the latest Swift 6 patch release, I will release a new Android cross-compilation SDK later this week, followed by an updated Swift toolchain in the Termux app for Android. I am seeing some new import issues with this Swift 6 release, just as others have reported with the Musl static linux SDK. I suspect this is related to the Foundation rewrite causing clang re-exports to change what modules are made available, as explained by Allan last week, but I don't have any solid proof of that.

Once I get that Swift 6 SDK and native Termux toolchain for Android out the door, I will get back to working on Android going into the official CI. Some members of the Swift core team tasked me with this last November, but it got delayed for reasons both technical, such as the new Android overlay and porting the Foundation rewrite, and personal.

16 Likes