user8193429
user8193429

Reputation:

Interface Builder XIB compiler error on Xcode 8

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".

Upvotes: 6

Views: 6315

Answers (4)

Abdullatif AlSharhan
Abdullatif AlSharhan

Reputation: 137

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.

Upvotes: 1

Eduardo Brandalise
Eduardo Brandalise

Reputation: 1

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.

Upvotes: 0

Jigar Tarsariya
Jigar Tarsariya

Reputation: 3247

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!

Upvotes: 3

Yagnesh Dobariya
Yagnesh Dobariya

Reputation: 2251

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.

Upvotes: 19

Related Questions