重命名伞头 [英] Renaming umbrella header
问题描述
我与Umbrella标题存在命名冲突。我的框架名称是SecureData,但我希望在这个框架中有一个名为SecureData的objective-c类。
I have a naming conflict with the Umbrella header. My framework name is "SecureData", but I want to have an objective-c class in this framework called "SecureData".
问题是伞头必须是被称为SecureData.h,我无法弄清楚如何在xcode设置中为伞形头指定不同的名称。这可能吗,或者我只需要提出一个不同的名字?
The problem is that the umbrella header has to be called "SecureData.h" and I can't figure out how to specify a different name for the umbrella header in xcode settings. Is this possible, or do I just need to come up with a different name?
推荐答案
这是可能的。
您可以通过模块地图文件
为伞形标题指定其他名称。
You can specify a different name for the umbrella header by Module Map File
.
-
为Project创建新的modulemap文件。
Create new modulemap file for Project.
framework module XXXProject {
umbrella header "XXNewumbrellaName.h"
export *
module * { export * }
}
构建设置 - >包装 - >模块地图文件
Build Settings -> Packaging -> Module Map File
好的,你实现了预期的效果。
Ok, You expected effect is achieved.
我希望这会对你有帮助。
I hope this will help you.
这篇关于重命名伞头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!