6

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

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131

4 Answers4

19
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.
Yagnesh Dobariya
  • 2,241
  • 19
  • 29
3

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!

Jigar Tarsariya
  • 3,189
  • 3
  • 14
  • 38
  • 17
    5. Turn off the power of the city you live in. 6. Pay a hitman to harass Apple CEO for the bullshit IDE that they develop. Sorry for the off-topic message but I need to discharge my frustration somewhere. I often think that Apple devs never use XCode for their development, that's how crapy new Xcode releases are. – danypata Feb 08 '18 at 10:27
  • I've had this happen a few times. Both answers have worked for me in separate cases. Hard to say what warrants a restart but worth trying all the options listed in both answers. – Brian Sachetta Jun 14 '18 at 13:21
  • @danypata LOLOLOLOL you are getting the same with me – KoreanXcodeWorker Mar 19 '19 at 10:40
1

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.

0

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.