gpt4 book ai didi

iPhone通用静态库在发布配置的Interface Builder中工作,但在调试中不起作用

转载 作者:行者123 更新时间:2023-12-03 21:11:07 24 4
gpt4 key购买 nike

我按照指示 here 进行操作创建 iPhone 类库的静态库。我在 Release模式下构建了它。当我将其包含在另一个项目中,引用 Interface Builder 中的一个类并在模拟器中运行它时,如果我在 Debug模式下运行,但它在 Release模式下运行,则会出现错误。

使用调试配置时出现以下错误:

2010-07-21 00:07:56.641 TestApp[13186:207] Unknown class BlahBlahController in Interface Builder file.
2010-07-21 00:07:56.651 TestApp[13186:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x3b07a40> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key delegate.'

理想情况下,当主机应用程序的构建配置同时处于调试和发布配置中时,我希望能够使用库的发布配置。

最佳答案

我发现了问题。

我在构建配置的“其他链接器标志”部分中设置了 -ObjC,但无意中仅将其设置为发布配置,而不是“所有配置”。

关于iPhone通用静态库在发布配置的Interface Builder中工作,但在调试中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3291000/

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