如何在 google 本地客户端中编译 objective c 文件?

how to compile objective c file in google native client?

我有一个 chrome 的 npapi 插件(包),它使用 C++ 和 objective-c。现在它需要由 google 本机客户端构建。

不知nacl是否支持objective-c?如何通过MakeFile编译o-c文件

如果可能,如何在 Xcode 中构建 nacl 插件?我试过了,但我发现 nacl 的库是“没有架构规范的存档”。(使用 lipo -info *.a)

希望有人帮帮我,万分感谢!!!

如果您使用 Objective-C 而没有任何常用库,那么您应该能够使用 PNaCl 工具链(基于 LLVM)来解析 Objective-C。我不知道已经完成此操作的项目,所以如果你有一些工作,你绝对应该 let folks on the mailing list know(尽管如此,请务必保留问题!)。

听起来您的应用程序不会 运行 在开放网络上运行(只有独立于体系结构的 PNaCl 可以 运行,NaCl 不行),因此您可以 use the PNaCl toolchain to create a .pexe, or you could use the same toolchain to create a .nexe for each architecture you target. The documentation I linked to helps with both approaches, but note that using the PNaCl toolchain to create a .nexe is currently being improved.因此,您可以按照错误跟踪器上的说明进行操作,或者在 nacl-clang 发布时试用它(如果您有勇气,也可以自己构建)。