swift - 使用 MaterialComponents 框架时出现“找不到图像”错误
问题描述
“我正在使用 MaterialComponents 框架。使用 pod 安装后,它在情节提要中隐藏了我的一些视图控制器,因此我无法编辑它,但程序运行正常。重新安装它可以消除错误”
它还突出显示错误,例如“无法为 UIViewController() 渲染和更新自动布局状态:dlopen..ionalization 引用自:MaterialComponents.framework 原因:找不到图像”
有人可以帮我吗。
解决方案
这个问题似乎与该框架无关,但 pod 安装在某处已损坏。你可以试试这个:
- 清理项目:产品 -> 清理构建文件夹(或 Command + Shift + K)
- 删除项目的派生数据:rm -r ~/Library/Developer/Xcode/DerivedData/YOUR_PROJECT-xxxxx
- 重启 Xcode
- 重新安装 pod
推荐阅读
- android - 如何在 android retrofit 2 中上传照片?
- python - 如何阻止计数器增加
- sql - 如何删除重复记录(这是一个棘手的情况,行本质上不是唯一的,但它们的内容是)
- objective-c - 如何根据我的 API 的响应在 UITableViewCell 中使用 AVPlayer 和 Image
- python - 使用 QMediaPlayer.duration() 时总是得到 0
- java - 获取列表中特定字符串的最后一次出现
- reactjs - 滚动时可折叠的顶部选项卡导航器
- mongodb - 保存后使用猫鼬精益
- google-sheets - 如何在 Google 表格中找到现有图表的图表 ID?
- android - 将 JSON 反序列化为包含对另一个反序列化对象的引用的类型