gpt4 book ai didi

ios - "Allow Non-modular includes in Framework Modules"设置到底是什么?

转载 作者:可可西里 更新时间:2023-11-01 06:13:55 27 4
gpt4 key购买 nike

我在网上看到很多帖子建议将“允许非模块化包含在框架模块中” build设置更改为"is",但我无处可寻解释这个build设置到底做了什么!有没有人能够解释它是什么或做什么,或者指向一些解释它的链接?

关于我的问题的一些背景信息:我正在开发一个依赖于 .a 库的 Cocoa Touch Framework。我无法在我的框架的公共(public) header 中使用 .a 库的任何 header 。好吧,我可以构建我的框架,但是当我将它添加到我的应用程序时,这些 header 就找不到了。 (将 "Allow Non-modular includes in Framework Modules" 设置更改为 "Yes" 允许构建我的框架,但没有解决后续问题,即它在我的框架中可用申请。)

最佳答案

我找到了 this GitHub Gist成为 Xcode build设置的一个很好的可搜索引用。

根据该要点(参见 here),“允许非模块化包含在框架模块中”build设置的目的如下:

Enabling this setting allows non-modular includes to be used from within framework modules. This is inherently unsafe, as such headers might cause duplicate definitions when used by any client that imports both the framework and the non-modular includes.

关于ios - "Allow Non-modular includes in Framework Modules"设置到底是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35183333/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com