如果我在 Xcode 项目中打开其中一个 Storyboard,我会收到此警报:
The document [storyboard name] had 4 issues that were found and repaired.
This may be due to an SCM operation such as merging. Please save the document to fix the issues.
Multiple resources have the same name: groupTableViewBackgroundColor.
我尝试保存文档,但错误不断弹出。
这是什么,我该如何解决?
最佳答案
这个错误看起来像是一个 Xcode 错误,因为我不记得我的 Storyboard有合并问题。它可以通过编辑 Storyboard的源代码来修复。您可以这样做:
<systemColor name="groupTableViewBackgroundColor">
groupTableViewBackgroundColor
因为某些原因。由于 Storyboard是基于 XML 的,因此定义以 </systemColor>
结尾。 :<systemColor name="groupTableViewBackgroundColor">
<color red="0.94901960784313721" green="0.94901960784313721" blue="0.96862745098039216" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
如果错误仍然存在,删除并重新添加 Storyboard文件 .
关于Xcode 显示 "The document had 4 issues that were found and repaired./Multiple resources have the same name: groupTableViewBackgroundColor."警报,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64344102/