Xcode storyboard: Internal error. Please file a bug

29,974

Solution 1

I faced the same issue. And it was solved by cleaning up the build files.

cmd + shift + k

AND

cmd + option + shift + k

Hope this helps Thanks.

Solution 2

The following steps will stop your problem.

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

Solution 3

Clearing out the DerivedData folder (in ~/Library/Developer/Xcode/DerivedData) is what fixed the issue for me.

Solution 4

I had the same issue. Got it fixed using below steps :

  1. Delete the derived data of your project

  2. Clean your project (Shortcut : cmd + shift + k)

screenshot

  1. Now, run your app.

Solution 5

Just ran into this error, and it coincided with non-available iOS versions showing for the wrong Xcode (e.g., iOS 11.2 showing for Xcode 8.2.1, which is not possible for iOS Simulators).

Solution was to delete /Library/Developer/CoreSimulator, e.g.,

rm -rf /Library/Developer/CoreSimulator

In theory you should be able to run xcrun simctl delete unavailable but that didn't work in this case.

Note Found this issue on Xcode 8.2.1, but 9.2 was also installed.

Share:
29,974
Justin Leo
Author by

Justin Leo

Working my way up to be a full-time mobile app developer.

Updated on July 05, 2022

Comments

  • Justin Leo
    Justin Leo almost 2 years

    While editing in the storyboard, specifically assigning a view controller to a specific class, I suddenly encountered this error when I wanted to run the project.

    Main.storyboard: Internal error. Please file a bug at bugreport.apple.com and attach "/var/folders/79/_jh611t15qsfcx165_jv_20h0000gn/T/IB-agent-diagnostics_2015-10-28_00-33-12_730000".

    And now I can't run my project anymore. I couldn't find any information regarding to this anywhere else. Did anyone encounter this before?

    enter image description here

  • Quinn Taylor
    Quinn Taylor over 8 years
    Cleaning the build folder should not be necessary, this was an intermittent issue related to the iOS simulator, and is resolved in Xcode 7.1.1.
  • Fahad Ajmal
    Fahad Ajmal over 8 years
    Yeah. I used them together. So i wasn't sure which one worked.
  • Dipen Desai
    Dipen Desai over 8 years
    i have tried the above options but still not solved my issue
  • Sunil Rao
    Sunil Rao almost 8 years
    @FahadAjmal I have tried this but not helping in Xcode 8.0 (beta)
  • Anil shukla
    Anil shukla almost 7 years
    No need to start the Mac, Just restart the XCode.
  • oyalhi
    oyalhi almost 7 years
    If cleaning doesn't work, try cleaning out the derived data also - which solves many of the Xcode problems for me. To clear derived data for all projects (which should be safe), in terminal type: rm -rf ~/Library/Developer/Xcode/DerivedData
  • FateNuller
    FateNuller almost 7 years
    Hah. I guess I didn't try this exact combination of steps. Performing these steps in this order seems to have worked for me, however. Cheers!
  • Purushottam Padhya
    Purushottam Padhya over 6 years
    This does not work for me and any alternatives would be greatly appreciated. Thank You!
  • Antoine
    Antoine over 6 years
    Restoring an old version of my storyboard with Time Machine worked. Not sure filing a bug will help...
  • StartPlayer
    StartPlayer over 6 years
    just closing and opening again hasn't worked for me.
  • NotABot
    NotABot about 6 years
    Thanks, glad I didn't waste my time in filing up the report.
  • devjme
    devjme almost 6 years
    I had to delete derived data too... phew glad i didn't lose all that work :D
  • enadun
    enadun almost 6 years
    Occurred in Xcode 9.2 as well. Cleaning the project and closing the simulator solved the problem.
  • Kimi Chiu
    Kimi Chiu over 5 years
    Restart Mac saved my day!
  • Tim Newton
    Tim Newton about 5 years
    This was the only solution that worked for me. Updating XCode 7.3.1 project to XCode 8.2.1.
  • EANicolas1
    EANicolas1 about 4 years
    Awesome. Solved my problem. Only solution that was working for me.