Xcode storyboard: internal error. Please write a mistake

During editing in a storyboard, having specially assigned a view controller to a specific class, I unexpectedly encountered this error when I wanted to start a project.

Main.storyboard: Internal error. Please write the error to bugreport.apple.com and add "/ var / folders / 79 / _jh611t15qsfcx165_jv_20h0000gn / T / IB-agent-diagnostics_2015-10-28_00-33-12_730000".

And now I can no longer run my project. I could not find any information about this elsewhere. Has anyone come across this before?

enter image description here

+69
ios xcode swift uistoryboard xcode-storyboard
Oct 27 '15 at 16:42
source share
17 answers

I ran into the same problem. And this was decided by cleaning the build files.

cmd + shift + k

and

cmd + option + shift + k

Hope this helps Thanks.

+122
Oct 28 '15 at 9:05
source share

The following steps will stop your problem.

  • cmd + shift + k
  • cmd + option + shift + k
  • Restart xcode
  • Reboot the Mac.
+19
Dec 29 '16 at 5:48
source share

Deleting the DerivedData folder (in ~ / Library / Developer / Xcode / DerivedData) is what fixed the problem for me.

+10
Sep 28 '16 at 14:44
source share

I had the same problem. Corrected using the following steps:

  1. Delete derived data from your project

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

screenshot

  1. Now run your application.
+7
Apr 26 '17 at 13:12
source share

I just ran into this error, and it coincided with unavailable versions of iOS showing for incorrect Xcode (for example, iOS 11.2 showing for Xcode 8.2.1, which is impossible for iOS simulators).

The solution was to remove /Library/Developer/CoreSimulator , e.g.

 rm -rf /Library/Developer/CoreSimulator 

Theoretically, you should be able to run xcrun simctl delete unavailable , but in this case it did not work.

Note Found this problem in Xcode 8.2.1, but 9.2 was also installed.

+5
Apr 10 '18 at 19:54
source share

It looks like you found the error in Xcode and should present the error report using here and attach the file that it indicates with the error. Meanwhile, do you have an earlier version of your project that you can return to? Or provide the xml of your main bulletin board here?

+2
Oct. 27 '15 at 16:49
source share

In my case, the problem was that the UITextField is a preview in the UITableViewCell with the 'Basic' style. As soon as I changed it from Basic to Custom , it started compiling.

+1
Dec 11 '15 at 15:30
source share

The following are steps to resolve this issue:

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

+1
Jan 16 '17 at 9:19 on
source share

I just deleted the file that caused this problem (just the link cannot be deleted) and added it again.

+1
Nov 01 '17 at 7:43 on
source share

All these solutions did not help me.
What worked was:

 $ sudo chmod -R 777 ~/Library/Logs 
+1
Mar 10 '18 at 9:58
source share

I had the same problem with xcode8 beta 6, Command + K did not help, but then why did the xc xcode file display an error, I just adjusted the properties related to it in IB, since my view was normal and some of its internal properties Images. then I cleaned the assembly and launched the application. It worked.

0
Sep 05 '16 at 5:14
source share

I had this problem on Xcode 8.2.1. Cleaning up (cmd + option + shift + k) did not help. However, uninstalling Xcode, downloading Xcode 8.2.1 from Apple, the installation fixed the problem.

0
Mar 19 '17 at 8:58
source share

Just close your Xcode and open it again. the question will not be.

0
Dec 19 '17 at 7:25
source share

I am using Xcode 9.2 and all of the above answers did not solve the problem. My problem was that I accidentally added a restriction to the TableViewCell content view. And the presentation of the content is not applicable to restrictions, and I should not add restrictions to it. This is already blocked. But I really don't know how I added the restriction to this by accident. After removing the restriction, everything worked fine again.

I thought this answer would help someone having the same problem.

0
Mar 05 '18 at 21:57
source share

None of the other answers worked for me. Here is what I did.

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

Build and run.

0
Aug 21 '19 at 17:43 on
source share

For me, I deleted the whole section of the UITableView that was playing. There was only one camera in it, but obviously something happened. Uninstalling and restarting Xcode fixed this for me.

0
Sep 02 '19 at 21:13
source share

Try to remove each view controller and build to find the view controller that is causing the problem.

In my case, I lost the object in the storyboard.

enter image description here

Removing this object worked for me.

-one
Jul 04 '16 at 8:01
source share



All Articles