iOS 应用程序在没有链接必要框架的情况下工作

iOS app working without essential frameworks linked

我正在开发一个 iOS 应用程序,该应用程序可以用单个屏幕截图制作视频。因此,我需要 CVPixelBufferRefCGContextRefAVAssetWriter 之类的东西。目前该应用程序运行良好,但有一件事我不明白:

例如,CVPixelBufferRef 是对核心视频图像缓冲区的引用,并且是 CoreVideo 框架的一部分,我还没有 link 编辑到我的应用程序中。 这同样适用于 CGContextRef,它是 CoreGraphics 框架的一部分,我也没有 linked。 (或者 CABasicAnimationQuartzCore 框架的一部分)

没有必要的框架,我的应用怎么可能运行良好?我不再需要 link 这些框架了吗?

如有任何提示,我将不胜感激。

谢谢

一定是因为 "Link Frameworks Automatically" 构建设置。

来自 Apple 文档

When a source file includes a header from a framework that supports modules, the compiler generates extra information in the object file to automatically link in that framework. The result is that, in most cases, you will not need to specify a separate list of the frameworks to link with your target when you use a framework API that supports modules.