Xcode storyboard: Internal error. Please file a bug

IosXcodeSwiftUistoryboardXcode Storyboard

Ios Problem Overview


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

Ios Solutions


Solution 1 - Ios

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 - Ios

The following steps will stop your problem.

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

Solution 3 - Ios

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

Solution 4 - Ios

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 - Ios

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.

Solution 6 - Ios

Sounds like you found a bug in Xcode and should file a bug report with apple here and attach the file that it specifies with the error. In the mean time, do you have an earlier version of your project that you can revert back to? Or provide the xml of your main story board here?

Solution 7 - Ios

In my case, the problem was with a UITextField as a subview in a UITableViewCell with 'Basic' styling. Once I changed it from 'Basic' to 'Custom' It started compiling.

Solution 8 - Ios

I simply removed the file causing this issue (just reference not delete) and re-added it again.

Solution 9 - Ios

Here are the steps to fix this issue:

Uncheck target for the xib file -> clean the project->then check the target->clean the project-> run/build the project. Working in xcode 8.x

Solution 10 - Ios

All these solutions didn't work for me.
What did work was this:

$ sudo chmod -R 777 ~/Library/Logs

Solution 11 - Ios

I had same problem with xcode8 beta 6 , Command+K was not helpful , But then for which .xib file xcode was displaying error, I just corrected its related properties in IB like mine view was custom one & some of its inner image view properties. then i cleaned the build & run the app. It worked.

Solution 12 - Ios

I had this issue on Xcode 8.2.1. Cleaning(cmd + option + shift + k) did not help. However, uninstalling the Xcode, downloading Xcode 8.2.1 from Apple, installing did resolve the issue.

Solution 13 - Ios

Just close your Xcode and open it again. issue will be gone.

Solution 14 - Ios

I'm using Xcode 9.2 and all the above answers didn't solve the issue. My issue was that i added a constraint accidentally to the TableViewCell Content View. And content view is not constraint applicable and i'm not supposed to add constraints to it. It is already locked. But i really don't know how i added constraint to it accidentally. After deleting the constraint everything started working again perfectly fine.

I thought this answer would help somebody having my same issue.

Solution 15 - Ios

None of the other answers worked for me. Here's what did.

  1. Open the storyboard, select all and copy.
  2. Create a new storyboard, paste.
  3. Delete original storyboard.
  4. Rename all references to old storyboard.

Build and run.

Solution 16 - Ios

For me, I removed a whole UITableView section that was playing up. It only had one cell, but obviously something was up. Removing it and restarting Xcode fixed it for me.

Solution 17 - Ios

No solution above work for me. I fix it with this:

  • close xcode
  • open Terminal app and goto project directory
  • run command 'pod install'. it regenerate my project
  • open project in xcode again

note: this only for project with cocoapod installed project

Solution 18 - Ios

Try Deleting each view controller and Build to find the view controller causing an issue.

In my case, I misplaced object in the storyboard.

enter image description here

Deleting this object worked for me.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJustin LeoView Question on Stackoverflow
Solution 1 - IosFahad AjmalView Answer on Stackoverflow
Solution 2 - IosSyed Zahid ShahView Answer on Stackoverflow
Solution 3 - IosCharlton ProvatasView Answer on Stackoverflow
Solution 4 - IosJayprakash DubeyView Answer on Stackoverflow
Solution 5 - IosDan RosenstarkView Answer on Stackoverflow
Solution 6 - IosblahartingerView Answer on Stackoverflow
Solution 7 - IosskramView Answer on Stackoverflow
Solution 8 - IosElsammakView Answer on Stackoverflow
Solution 9 - IosShaliniView Answer on Stackoverflow
Solution 10 - IosFloris SnuifView Answer on Stackoverflow
Solution 11 - IosAshView Answer on Stackoverflow
Solution 12 - IosNishView Answer on Stackoverflow
Solution 13 - Iosashish.suranaView Answer on Stackoverflow
Solution 14 - IosKegham K.View Answer on Stackoverflow
Solution 15 - IosolynoiseView Answer on Stackoverflow
Solution 16 - IosAaronView Answer on Stackoverflow
Solution 17 - IosBamz3rView Answer on Stackoverflow
Solution 18 - Ioskarthick.rView Answer on Stackoverflow