Xcode 6.3 storyboard stuck - ios

When I open storyboard, the XCode shows that it's building right now, I suppose because of IBDesignable I use.
So it never got success, XCode stuck:
I tried to open just storyboard file with opening entire project, so seems it works, but when I try to close it, it's starting stucking again, I can't close it, and it every time in my process.
I tried restarting my mac, deleting xcuserdata, but nothing help to me.
It's upset because I written entire project using storyboards and now I can't continue to work on the project =(
One more when I try to open another file and I am in storyboard right now, like selecting a class or project file it also stuck. (switching from storyboard)

Related

My StoryBoard is Messed Up Xcode9

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.

XIB hangs a lot, Changing View As Device fixes

I made a project on Xcode 7.3, but after the release of xcode 8 I had to move onto that as I upgraded my project from swift 2.2 to swift 2.3 too, but im having a very weird problem. When I open my XIB file, it makes xcode very very slow almost crawling, I got 3 ways to fix the problem,
1) Take a new View from toolbar and make the previous view the subview of new view and apply contraints and it will stop hanging.
2) View the xib as source code, insert random spaces at the end of lines (Let xcode know that you edited file whatever it is), save it and come back, it will occasionally fix the problem but didnt work everytime.
3) when XIB is hanging, change the device in View as and it will start working properly untill you go to another XIB and come back.
This is happening in Xcode 8.1, does anyone know what can be the issue ?

Xcode 6 localization error

I accidentally deleted localization files , which resulted in the removal of Storyboard. I restore Storyboard from the Recycle Bin and add it back to the project. Then in Storyboard File Inspector i pressed the "Localize" button...
Next i go to my project info and add to them localization files (interface Builder Storyboard)... Then I made changes to the view in localiztion storyboard. Run the project in the emulator. In the emulator everything works fine. Text in View changes depending on the selected language... All greate. But when I try to run the project on the iphone localization does not occur. I also noticed that even if i change Main.Storyboard (Base) any changes in the View on Iphone did not change. Even if I delete any picture also view did not change. But in emulator all works great. I tried to remove the application from the iPhone, but it has no effect. I also installed the app on another iPhone, and it also does not give effect. Any idea how to solve this problem?
Rename storyboard file.
Reconnect storyboard in project.
Done.

Xcode 6.3 Crashes when navigating from storyboard to other Swift 1.2 file

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.

Xcode 4 won't update xib Interface on Simulator

I'm using Xcode 4.0.2 and im having this major issue. I can do what i want with my xib, delete all the views, move any objects around, or even delete the whole xib, but if i build & run my app on simulator it doesn't update the interface. It looks always the same, like it looked yesterday, but although i changed all the views it never updates the interface of the .app running on simulator. I have closed xcode a million times, deleted the app from simulator a million times, it's still the same |: Any ideas?
Try cleaning the product before rebuilding, and check that the xib is included in your target.
Alternatively, your project isn't using that .xib file at all and you've been editing the wrong one, or you decided at some point to build the interface in code instead and have since forgotten about it!
Try to delete it from Simulator manually: /Users/yourUsername/Library/Application Support/iPhone Simulator/4.3/Applications/

Resources