Swift for Android: Call for the Community

Working well on my phone!

Good to hear.

I struggled for days to get Swift 5.2+ to cross-compile for Android

Depending on which version of the commands you used, there are still things that can go wrong. I will rewrite the Android doc soon to make that less likely, once the patches I mentioned above are in.

The architecture is x86_64 instead of aarch64

I have not yet bothered to build a Termux package for x86_64. Maybe Jeremy's build will work for you? Note the extra flags he adds when cross-compiling to Android, just as I do when cross-compiling Foundation and the other corelibs.

2 Likes