I installed Xcode 8.1 and the storyboard shows only blue lines, for all UI elements. If someone has figured it out let me know. I am unable to revert it to even Xcode 8.0.
-
Got the same problem– Rajan MaheshwariCommented Oct 28, 2016 at 16:25
-
Check Editor->Canvas->Show Layout Rectangles is Unchecked in Xcode Menu. try that it may work.– Neelam PursnaniCommented Nov 8, 2016 at 12:05
-
Note: saw this in Xcode 10.3 as well.– shimCommented Sep 9, 2019 at 15:26
7 Answers
Don't worry revert back to old xcode
To remove the blue lines,
First, select a view controller in the storyboard.
Then, go to Editor > Canvas > Show Bounds Rectangles
This will hide the blue lines.
You may have to repeat this 2 or 3 times to make it work.
Ok, So finally I too got the blue line problem in Xcode 8.1
Here is the screenshot
We can see the error message:
An internal error occurred. Editing functionality may be limited
with a Report a Bug button on the right side.
Don't know why it happened. But I just quit Xcode and Simulator and restarted it. That fixed it and I got the UI elements back.
-
-
2force quit both xcode and simulator. And then open project with xcode again Commented Oct 28, 2016 at 16:59
-
Same issue for Xcode 9.0.1 got resolved by restarting Xcode only.– zeeawanCommented Oct 28, 2017 at 7:30
-
Same happened with in Xcode 9.2 when I converted my Swift 3 code to Swift 4. With same error msg. Restarting did worked for me.– AbaEesaCommented Mar 19, 2018 at 16:20
Seeing the blue rectangles is actually a feature of Xcode editor. You can turn this On/Off by going to Editor menu->Canvas->Show Bounds Rectangles
But yes, seeing just the blue boxes seems to be a bug. Usually happens if you have been switching between various versions of Xcode frequently. I guess quitting and reopening Xcode shall resolve this temporary issue.
I had this same issue when I had upgraded to Mojave and then installed an older Xcode (10.1) version. To fix I deleted all Xcode (10.2/10.1) versions and then installed Xcode 10 and it fixed the issue.
-
Colleague had similar problem with Xcode 10.3 / 10.2, deleting the latter fixed it.– shimCommented Sep 9, 2019 at 16:12
Had a similar issue (only blue lines without details rendering) when upgrading Xcode without restarting the Mac. Killing the simulator fixed it:
sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService
This has happened to me on several occasions. For me it almost always occurred after dragging a UILabel
from a UITableViewCell
into a different view.
I was able to fix the problem by deleting the view controller in the storyboard that I did the dragging to/from, closing the app, and reopening the project.
I had a similar problem in XCode 11, in my case even the view controllers was completely black. The problem was a Custom Class assigned to an UIButton. After a while i deleted the class because i didn't need it anymore, but the Button still had the class assigned.
Open the particular storyboard file, delete the assignment in Identity Inspector, restart Xcode. This fixed it for me.