Xcode storyboard: Internal error. Please file a bug
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.
- cmd + shift + k
- cmd + option + shift + k
- Restart Xcode
- 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 :
Delete the derived data of your project
Clean your project (Shortcut :
cmd + shift + k
)
- 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.
Justin Leo
Working my way up to be a full-time mobile app developer.
Updated on July 05, 2022Comments
-
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?
-
Quinn Taylor over 8 yearsCleaning 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 over 8 yearsYeah. I used them together. So i wasn't sure which one worked.
-
Dipen Desai over 8 yearsi have tried the above options but still not solved my issue
-
Sunil Rao almost 8 years@FahadAjmal I have tried this but not helping in Xcode 8.0 (beta)
-
Anil shukla almost 7 yearsNo need to start the Mac, Just restart the XCode.
-
oyalhi almost 7 yearsIf 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 almost 7 yearsHah. 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 over 6 yearsThis does not work for me and any alternatives would be greatly appreciated. Thank You!
-
Antoine over 6 yearsRestoring an old version of my storyboard with Time Machine worked. Not sure filing a bug will help...
-
StartPlayer over 6 yearsjust closing and opening again hasn't worked for me.
-
NotABot about 6 yearsThanks, glad I didn't waste my time in filing up the report.
-
devjme almost 6 yearsI had to delete derived data too... phew glad i didn't lose all that work :D
-
enadun almost 6 yearsOccurred in Xcode 9.2 as well. Cleaning the project and closing the simulator solved the problem.
-
Kimi Chiu over 5 yearsRestart Mac saved my day!
-
Tim Newton about 5 yearsThis was the only solution that worked for me. Updating XCode 7.3.1 project to XCode 8.2.1.
-
EANicolas1 about 4 yearsAwesome. Solved my problem. Only solution that was working for me.