10

将 xocde 更新到 10.3 版本后,无法查看或操作所有 xib 文件。
有什么解决办法吗?

我的操作系统版本:10.14.4 (18E226)

删除派生数据[不工作]

在此处输入图像描述

4

4 回答 4

6

从首选项中完全删除您的派生数据,然后重新启动您的机器。

于 2019-07-23T09:15:01.120 回答
2

重新启动计算机解决了问题。至少对我来说。

于 2019-07-23T23:02:36.403 回答
1
  1. Go to Xcode Preferences -> Location -> Derived data.
  2. Close Xcode.
  3. Delete Derived data.
  4. Relaunch the Xcode and try to open the Xib.

enter image description here

UPDATE:- Finally I got the problem. In my case, it was an IBDesignable Class with IBInspectable Properties. I was assigned this class to my view. To fix this I just create a subclass of my IBDesignable class.

于 2019-07-23T08:28:04.587 回答
1

在这些安装问题之后我遇到了类似的问题:

  1. Xcode 的 App Store 升级停滞(类似于Xcode - 如何重置故障的 Xcode 10.2 安装?
  2. 安全模式重启停止
  3. 从https://developer.apple.com/download/more/下载 10.3
  4. 新的 Xcode 没有安装模拟器——好的,修复它

经过所有的等待,一个打开的项目看起来像这样

在此处输入图像描述

上述 remove-DerivedData-restart 修复了这个问题。好的,这是事后推理,ymmv。

于 2019-07-23T17:58:26.777 回答