My Storyboard is messed all of my views are messed it was working fine and suddenly this happened anyone please tell me how to solve this i do not have any backup i am in big trouble check this screenshot.
StoryBoard Image
Close Picture Of StoryBoard
Try this:
Open any swift file, clean project.
Close project and quit xcode (Right click xcode and quit)
Open back project, you should be in the swift file you previously opened.
Go to the storyboard file again.
One clue I know of which caused this issue is that, if you have a compiler error, u click on the error, and it brings you to storyboard file from that error message. I've experienced this since xcode 8.0 till 9.0. Not sure if this happens to me only.
So try to open storyboard file every time using Project Navigator at the left hand side.
In Xcode, I can't open .storyboard files from the document navigator for the specific project I'm working on. If I open a different project I can open them fine, and when I go to finder and manually open the file it loads the interface builder and I can edit the file perfectly fine. I noticed that in the document navigator the icon is grayed out.
Here is a screenshot
It is very subtle in the screenshot, but the opacity is less than 100%.
I've tried cleaning and restarting, and I've even reinstalled Xcode without any luck.
As per I'L'I's comment, removing the files, and then dragging them back into the editor fixed the bug.
This link is not use full for me : The document Main.storyboard requires Xcode 8.0 or later
It's possible to do this, but I would be wary about doing so. You can find information here: http://radex.io/xcode7-xcode8/
Go through all of your .xib and .storyboard files, open the right
sidebar, go to the first (File inspector) tab, and find the “Opens in”
setting.
It will most likely say “Default (7.0)”. Change it to “Xcode 7.0”.
This will ensure that even if you touch the file in Xcode 8, it will
only make changes that are backwards-compatible with Xcode 7.
I'm using Xcode 6.2 (Xcode 6.3 has same problem) at the moment. I've got some ridiculous situation when I just click to open storyboard files in the project navigator.
Xcode changes frame of elements in the storyboard file. I just open the file, I did nothing. See below screenshot. It's my diff screen. I shot this just after open a storyboard file.
Those changes are just tip of the iceberg. There are tons of unexpected changes.
I have no idea the reason why? and how can I fix it?
I'm scare opening storyboard files. I'm gonna die if this is persist.
I installed Xcode 6.3 which includes support for Swift 1.2. It turned up a ton of error messages, which are mostly casting issues.
I navigated to the storyboard, and cannot go back to any other .swift without the whole thing crashing. I have force quit, restarted, and even re-installed, and I still can't navigate away from the Main.storyboard file.
I have tried the suggestion described here to open storyboard as code, make some changes, revert those changes, save and try again, and still no luck.
Is something in my code breaking Xcode? Is anyone else experiencing this? I had used Xcode 6.3 beta successfully with the same codebase.
Update:
This has now been fixed in Xcode 6.3.1 released on the 21st of April 2015.
I gather from the apple developer forums that this is an #IBDesignable issue. Especially in projects that use custom fonts, additional xibs, etc.
I have somehow fixed my issue by removing all #IBDesignable from swift UIView class definitions. You can open your project directory with TextMate or other, search and remove all "#IBDesignable"
However I still think this is a MAJOR bug, that needs to be worked on.. so keep filing bug reports to Apple.
A temporary solution:
By opening a "New Window" (same project).
One for the code, one for the storyboard or reduce first, work freely with second window.
You can keep your #IBDesignables
EDIT : Bug fixed -> Update Xcode 6.3.1
Launching Xcode while holding shift fixed it for me.
(This suppresses Xcode's state restoration.)
Update: Xcode 6.3.1, released today, resolves this issue.
Update
Xcode 6.3.1
For me, everything works !
Temporary solution:
If you have currently opened Assistant Editor switch to another file using alt+click. You can keep your #IBDesignables.
Here's how I get around this strange bug:
Before launching Xcode, rename the storyboard file in finder so that Xcode won't find it (e.g. add the extension .temp)
Launch Xcode - works fine even if it hanged before since it cannot display the storyboard editor
Open a new window in Xcode
Rename the storyboard file to its original name
In the new window in Xcode - select the storyboard - Xcode does not hang
Minimize the new window and work as usual in the original window. Now you can select any file - even the storyboard - without Xcode hanging
One problem remains, though, at least for me. Every time I select a file or edit something, Xcode needs to recompile the storyboard. Haven't solved that one yet.
I can confirm this bug. I was stuck in storyboard and could do nothing to get out of it (couldn't even open the assistant). As a workaround, with the storyboard open, right-click the .storyboard file and select Open As - Source Code. This will switch your storyboard to code and you will be able to then switch to any file.
It is not a bug anymore since Apple fixed it in Xcode 6.3.1.