gpt4 book ai didi

ios - Swift Framework 仅在干净之后构建

转载 作者:行者123 更新时间:2023-11-28 07:36:41 26 4
gpt4 key购买 nike

所以我有这个名为 MyAuth 的框架,它构建良好,当我将 .framework 文件导入其他应用程序时,一切正常。但是,在我清理之前,您每次构建该项目时,该项目都将无法构建。

我得到的错误是 Umbrella header 'MyAuth.h' not found 并且它指向一个 module.modulemap 文件,如下所示:

framework module MyAuth {
umbrella header "MyAuth.h" <- Error on this line

export *
module * { export * }
}

module MyAuth.Swift {
header "MyAuth-Swift.h"
requires objc
}

但是头文件是存在的,位于项目的根目录下。

现在,如果我执行一次清理然后再次构建,它将成功,但每次我想要构建有效但并不理想的项目时,我都必须清理我的构建文件夹。

有什么原因会发生这种情况吗?

最佳答案

检查设备和模拟器的Fat框架

关于ios - Swift Framework 仅在干净之后构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53109268/

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