gpt4 book ai didi

ios - Interface Builder 文件中的未知类 ****

转载 作者:技术小花猫 更新时间:2023-10-29 10:41:26 27 4
gpt4 key购买 nike

我使用 MyView 的根类添加了一个 UIView xib 文件。

我在错误的地方创建了它,所以在项目中移动了它。相同的项目只是不同的文件夹/组。

然后我在运行时遇到了问题...

Interface Builder 文件中的未知类 MyView

我无法弄清楚哪里出了问题,所以我现在已经从项目和目录中删除了文件。

我已经使用 SublimeText2 搜索字符串“MyView”,但它在项目中的任何地方都不存在。

我重置了模拟器,清理了项目和构建文件夹并删除了派生数据。

仍然出现同样的错误。

知道我现在可以做什么吗?

最佳答案

有时 IBuilder 会遗漏 customModule="AppName"customModuleProvider="target"

要修复它,请打开 Storyboard作为源代码并替换此行:

<viewController storyboardIdentifier="StoryboardId" id="SomeID" customClass="CustomClass"
sceneMemberID="viewController">

为此:

<viewController storyboardIdentifier="StoryboardId" id="SomeID" customClass="CustomClass"
customModule="AppName" customModuleProvider="target" sceneMemberID="viewController">

关于ios - Interface Builder 文件中的未知类 ****,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19401783/

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