If you're running a terminal utility on a mac, you might want to know what the minimum OS version is that is required to run the utility. You can do this by using a tool called otool.

otool -l go-james | grep minos
    minos 11.0

This indicates that my go-james utility requires macOS 11.0 or newer.

You can also use it to figure out which SDK was used to build the app:

otool -l go-james | grep sdk
      sdk 11.1

As you can see, the 11.1 macOS SDK was used to build the app.

Related Posts

  • Cleaning up Xcode data
  • Gotcha with defer in Go
  • Pretty-print JSON with Go
  • Using the Docker client from Go part 2
  • Looking up a CNAME in Go