Interface Builder XIB compiler error on Xcode 8

别说谁变了你拦得住时间么 提交于 2019-12-10 13:38:48

问题


After switching to Xcode 9 then back to Xcode 8, my build is failing and I'm getting this error. I'm not getting any error on Xcode 9 though.

Note: I've already checked :Solution and Solution, however it's not working.

Why am I getting this error?

BasketTotalView.xib: Internal error. Please file a bug at bugreport.apple.com and attach "/var/folders/dg/_yf1yfd15svdj48mrrlws5vw0000gp/T/IB-agent-diagnostics_2017-08-18_10-08-35_271000".


回答1:


Click on your .XIB file 

From Right side bar select "Show the file Inspector"

Go to "Interface Builder Document" section.

In "Open In" dropdown select Xcode 8.

Clear derived data, Build and Run. 

May this help you.



回答2:


I have solved this issue by following below steps:

1. cmd + shift + k
2. cmd + option + shift + k
3. Restart Xcode
4. Restart your pc.

Hope this will also works for you. Thanks!




回答3:


In my case, none of the options above helped cause my problem wasn't in the DerivedData. I clicked on the arrow on the right side of the Interface Builder and it took me to a subfolder system inside /private/var/folders/

This is the arrow that takes you to the file

I've cleaned it and rebooted the Mac. It worked! I followed this tutorial:

Can I delete files or folders from /private/var/folders/?

Some will say that just the reboot is enough to clean the folder but I've cleaned it anyway.




回答4:


In my case, the .xib file in the project wasn't linked correctly to a file in Finder, and it was dimmed a bit. After linking the file, it worked fine without any errors.

The file can be linked by selecting it, and then from the file inspector, select the folder icon front the full path label, and locate the file.



来源:https://stackoverflow.com/questions/45752935/interface-builder-xib-compiler-error-on-xcode-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!