在哪里可以找到machOSX的mach_host库

Where can i find mach_host library for mac OS X?

本文关键字:mach host machOSX 在哪里      更新时间:2023-10-16

在哪里可以找到macOSX的mach_host.h库?因为我在网上找不到它。我在Michael Taylor的这篇文章中读到了答案,其中使用了mach_host.h库。

如果你想在OSX下进行软件开发,你需要去AppStore并从苹果安装Xcode。它将拥有所有的头、库、编译器和链接器以及工具。

如果你想找到这个头文件,你可以使用这个命令:

find /Applications -name mach_host.h

将会有几个答案,有些是针对WatchOS的,有些是iOS的,有些则是针对OSX的。你需要这个:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/mach/mach_host.h