可以在 iOS 上使用辅助可执行文件吗?

Auxiliary executable possible on iOS?

在 OS X 上,在您的应用程序包中添加一个额外的可执行文件是微不足道的。这在 iOS 上可能吗?如果是的话,Apple 是否允许(通过 objc_msgSend 进行私有框架调用 可能 ,但 不允许)?

NSBundle class 的 iOS 版本包括 the relevant APIs,但 Xcode 中没有 "command line tool" 的模板,甚至是空目标。

这是可能的,但非常有限。只允许 defined extension types. The iOS bundle structure has a very strict definition and loadable bundles 不允许。