0

In developing/testing OSS libraries I can replicate a clean Linux fs using containers. However, if I want to test oss libs for MacOS end users, I seem to be in a bit of a quandary. Is there any way to create a clean fs on MacOS that I can test libraries with? Perhaps using chroot? Can someone explain exactly instead of just saying "use chroot"?

Alexander Mills
  • 395
  • 1
  • 3
  • 11

2 Answers2

2

I don't think you can containerize MacOS, but you could create a Mac OS VM and snapshot it, that way you can easily restore to the same exact Mac OS version for each test.

0

From what I can tell so far, the best way to replicate a clean MacOS fs on Linux is to use a VM. These instructions should suffice:

https://www.raywenderlich.com/1448-introduction-to-open-source-swift-on-linux

Alexander Mills
  • 395
  • 1
  • 3
  • 11