Building Swift for Yocto on macOS / Apple Silicon

New blog post here: Building Swift for Yocto on macOS - by Jesse L. Zamora

If anyone has been wondering if this is possible- yes it is! But, you do need plenty of CPU, RAM, and disk on a MacBook to do it...

1 Like

Is it fair to assume one can replace Docker/Podman with Apple's container tool?

If anyone tried and failed, please let others know...

When I last tried it with the 1.0.0 of container, it didn't quite work. It basically started erroring out and got stuck using high CPU, crawling to a halt during the Yocto build. I'm not sure if it's a problem of how Yocto interacts with the volume shares or what.

I will try it again with container 1.1.0 and see if perhaps this is better now.

1 Like

It actually does work. I just had to configure a maximum number of CPUs and a RAM limit for container to keep it from thrashing the system resources on my M1 Pro (16GB). I have a PR for the meta-swift-examples here to have it support container:

Once this is merged I can probably update the blog post to add this information as well.

All, I updated the guide to include some instructions on using container as well.