How do i detect whether macOS is being run inside VM?

I want to prevent my universal application run inside VM.
So, I need to detect first, but I don't have any idea.
Anyone has advice in Swift or C or C++?

I recently answered this on DevForums.

Share and Enjoy

Quinn “The Eskimo!” @ DTS @ Apple

1 Like

@eskimo
thank you so much.

1 Like