Iam using Xcode 4.4 on Mountain Lion and unable to do any IB related tasks.
Dragging a control to a xib file, connecting an IBoutlet to code, whatever I do , Xcode crashes
Any clues will be appreciated
Your situation sounds remarkably similar to what happened to me yesterday:
Xcode Interface Builder crashes when I edit storyboard
It would be worth looking at the console log to see if the reports are the same. If they are, experiment with the 'Use auto layout' checkbox.
Related
I develop mainly IOS apps but, recently, I worked on an OSX app. Both are possible with Xcode (I use 8, with swift).
Unfortunately, when I switched back to my already-existing IOS project (after restarting Xcode), the storyboard selection menu for the object library shows only OSX objects, not IOS (e.g. UIImageView).
I have googled without success and tried restarting Xcode, also without success. Can anyone help me fix this?
I did a lot more searching and came up with:
Xcode is loading in OS X objects instead of iOS objects
There there are other solutions proposed but the one that worked for me was to close the assistant editor and then, in the file list ( leftmost window in Xcode 8), I double clicked on the storyboard file. Problem solved. I am surprised that this bug still exists in this latest version...it is very troublesome.
I recently upgraded to Xcode 7.3. I found that loading up the storyboard can take anywhere from 5 to 10 minutes to complete(and may sometimes result in a crash). I've restarted my Mac several times. I uninstalled Xcode and reinstalled it to no avail. I then cleared my Derived Data as well as com.apple.dt.Xcode to find that this did not help either. Is anyone experiencing a similar issue and possibly has a solution?
Although this actually might be an issue with incremental changes in Storyboards with Xcode 7.3 you can always speed up build times by creating multiple small Storyboard files in favor of a big bloated Storyboard.
Xcode can then reuse already built Storyboards in subsequent builds (as long as they are not changed) instead of building the complete bloated Storyboard over and over again even for small changes.
Apple even has a guide that might help getting this started.
I hope that helps!
This is really annoying bug/issue with XCode 7.3. So, If you have an hour or so to spend you can download and install XCode 7.3.1 Beta from here https://developer.apple.com/xcode/download/
It seems that this issue has been fixed in this version (at least it works for me).
Edit: OK. After a few minutes, Interface Builder became extremely slow again. Changing only one property can take up to 15-20 minutes.
After some research I have figured out that autolayout constraints were the cause of this issue, BUT only if you have a combination of some components present. I had a segmented control inside a navigation bar. When I removed navigation bar and placed segmented control in a simple UIView, all issues were gone and IB was smooth again.
Hope this will help.
I am using Xcode 7.3.1 and had the same problem. My problem was solved by disabling source control.
Go to Xcode->Preferences->Source Control and then Uncheck the Enable Source Control. Worked for me.
Thanks.
Sometimes the storyboard gets slow because of unresolved errors of autolayout. In my case i tested by changing screensizes and it showed me some errors on different sizes. Once i resolved those errors the storyboard was working fine. Please confirm
Yep I had the same problem. In design mode, it's Autolayout that is causing the 5-10 second delay between edits, especially if it's a large storyboard. Turning off Autolayout in the storyboard at design time fixed the issue for me:
Open project
Select storyboard from the Project Navigator
Open the file inspector
Under Interface Builder Document uncheck 'Use Autolayout'
If you need Autolayout at run time, I recommend you layout your Storyboard in design time with this off (to avoid those long delays between edits) then turn it back on afterwards. Or, turn Auto layout on programatically. Or better yet, split your storyboard out into smaller storyboards.
Referenced this question: Can I disable autolayout for a specific subview at runtime?
I got the same issue recently after I updated the OSX to 10.11. Xcode 7.3 will take almost 5 mintues to respond when I just change the button's font (or anything else change). This made me almost crazy. Incidently, just for a try, I updated Xcode from App Store to 7.3.1. Then I was happy to cry when I opened the storyboard and changed the attributes. Xcode responds smoothly.
So please try Xcode 7.3.1 for your problem. Hopefully you can be happy with it.
I am trying to create a Table View Controller in my storyboard and when I change from "Dynamic Prototypes" to "Static Cells" Xcode stops responding until it eventually crashes.
What I tried so far:
Re-installing Xcode;
Clear Xcode folders under ~/Library (including DerivedData);
Creating in a new project (still crashes);
Ask a colleague to create a Table View Controller with static cells in the same project. He can do it on his computer. I can see the Table View on my computer and even edit rows, but I cannot add sections.
Tried both Swift/Obj-C projects, with or without Core Data;
I am using XCode 6.1.1 (6A2008a), the same as my colleague.
Please help! Thanks!
Yes , I have faced similar problem .please try with Xcode 6.3.x or later version .
Not a fix but may help some. I noticed this was only happening to me when I had two windows of my current project open. Was reworking a storyboard, so I had the old and new side by side. When I closed the windows of my project that I was not currently editing, Xcode did not crash. With more than one window open, editing a Static Table View would crash Xcode EVERY time.
I found a temp Fix. I also noticed that my dock isn't working fine (I can drag and drop things into it or in it). So I rebooted the mac and this fixed the dock problem, I tried quickly in Xcode and it worked. I guess it's something with Mac OS not just Xcode
I've made a demo video showing how I make Interface Builder in Xcode 4.4 crash:
http://www.youtube.com/watch?v=pRLGOmg9LpQ&feature=youtu.be&hd=1
Currently I'm struggling to continue my work due to this problem.
How can I avoid this crash? Any ideas, work-arounds, manual xib files tweaks, etc?
It's all ok for me following your youtube video, but i'm with 4.2 on Snow Leopard and my resulting object structure is slightly different.
was it ok with 4.2 and start to crash only with 4.4?
Is it still happening, or have you fixed it?
Looking closely at your video, I think the error in the crash log is the same as the crashes I had earlier this week:
Xcode Interface Builder crashes when I edit storyboard
Try switching off auto layout and seeing if it helps.
Once Interface Builder is working reliably, you seem to be able to switch auto layout back on again without re-creating the problem.
I am using a MacBook Pro installed with Xcode 3.2.5 and iOS SDK 4.2. When I launch Interface Builder by clicking the nib file, then I do not see any library window. Anyone has idea on why it is behaving so?
Thanks!
Xcode 4.1 view -> utilities -> show object library
If you choose Library from the Tools menu, or if you press ⇧⌘L, does it not appear?
I had same problem just after updating to XCode 3.2.6 (IB is currently 3.2.6 also).
My machine is configured to work with two display screens but I don't always turn the smaller one on.
I found the library to be present on the second screen.
How it got there I have no idea.
Try switching to a higher display resolution to see if a similar thing happened in your case.
I think the problem is there is no Interface Builder plugin for XCode 4. You probably cannot edit nib file in XCode 4.
In the Xcode menu, choose View > Utilities > Size Inspector.
Make sure the Object library is visible in the pane below the Size inspector. If not, choose View > Utilities > Object Library.
Sometimes my interface builder screen doesn't show up, and I check my sytem resources and kill off some processes. Apparently, 600 or 700 MB of memory left isn't enough for XB to launch
it works using ⇧⌘L in xcode 3.2.6