I started making a finance program yesterday. I didn't have internet, so I waited to search the problem up. I could not find anything that worked. I am using an NSTabView, and there are three tabs: income, assets, and net worth. Inside income, I have two NSTableViews. Inside assets, I have one NSTableView. The Clip Views in these three NSTableViews are not displaying. I have the newest version of Xcode (6.1.1), and am using Yosemite. There are also warnings that look like the following:
So if anyone knows about what might be happening or how to fix it, it would great if you could leave a comment or answer!
I believe this is a bug for XCode 6.1 on 10.10. When running on 10.9, there is no such warning.
Here is a similar question: Permanent Misplaced View warning for Clip View in NSTableView
I will Update this answer once I find a new solution other than downgrading my OS to 10.9.
Update:
I believe it is a bug of Xcode. And I do find a workaround to fix it(other than downgrading my OS to 10.9).
The solution is to edit the attributes of tableView in IB, disable "Headers". Don't show table headers and the warning will be magically gone. And we can guess that by default the table header is 17px :)
It's just a workaround, not an ideal solution. This is not our fault. The best solution is to wait for Apple to fix this Xcode bug.
Related
Since upgrading to Sierra, clicking any text within PhpStorm 2016.2.1 results in a random block of text being selected and clicking within that moves the text around randomly instead of deselecting the text block.
Worked without a problem in El Capitan.
This has made PhpStorm into an extremely frustrating and productivity killing experience.
Any idea how to fix this?
Please see the latest EAP build here (I haven't yet tried it myself): https://blog.jetbrains.com/phpstorm/2016/10/phpstorm-2016-3-eap-163-5644/
Issue is tracked as https://youtrack.jetbrains.com/issue/IDEA-161617. Please check if the problem persists in the custom JDK build: https://youtrack.jetbrains.com/issue/IDEA-161617#comment=27-1642308
I found that turning off the "three finger drag" feature dramatically reduced this issue.
Follow the instructions in Apple's support docs for this.
It seems that under Sierra the Magic Mouse has become so sensitive that even touching the edge of the mouse with my other fingers can be misinterpreted as a three finger drag attempt.
Still happens intermittently, so I'm hoping some update to the driver by Apple or the PHPStorm JDK will get rid of any lingering occurrences. For now, this is the best solution I've found thus far.
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 just recently downloaded the latest public release of Xcode (6.3) and I noticed the storyboard for my app is now low res on my Retina MacBook Pro. Images, text and standard UI elements all appear blurry. On the actual device everything looks fine and code still looks sharp its just while working in the Interface Builder.
Has anybody else noticed this and figured out a way to fix it? This is happening to me in both Swift and Objective-C projects including in Apple's sample projects (Master-Detail Application and etc).
I submitted this as a bug report, and Apple responded by saying that it is the desired appearance. They did not give an explanation, that was all they said.
It appears to be related to a bug in the newest iOS SDK, and as a workaround, they've forced Interface Builder to render everything at 1x. Currently, there doesn't seem to be any solution to this annoying problem other than to wait.
Just installed Xcode version 6.3.2 and this issue appears to have been fixed.
Have you tried re-installation of the same version? That helped once.
Alternatively, can upgrade to newer version, too.
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 have been trying to figure this out for a long time now, either I am stupid, or Apple hav just made this really tricky. Storyboard Preview do not match simulator or device in xCode 6! I have added constraints so that the app looks just fine in all screen sizes in preview but it looks messed up when I run it in the simulator or on my device. help!
do you need any screenshots to answer my question?
I know other people have had the same issue but I can not find any answers.
The storyboard "Preview" doesn't match the simulator if you have any constraint errors/conflicts. I was having this problem, and found this question while searching for an answer.
Once I got all of the conflicts resolved, the Preview worked. It seems like the preview should consistently show what the simulator would show to help during the setup, but it's all out of whack if there are conflicts.
Using Xcode 6.3.1 and I was having the same problem(s). What I discovered is that you are missing constraints...
open main.storyboard in your "Structure" column you should see some red arrows, single click them and you should see what constraints you are missing.
Can confirm that this was resolved after taking care of all warnings and errors related to Auto Layout.
I just fixed my size class problem by having my constraints be set for compact width / regular height. When I set constraints specific to compact width / any height, it ignored my custom values.
Hope that helps. Took me forever to figure out because the description lead me to believe my custom layout would cover more devices with the latter choice.
Make sure you've got the latest xcode installed. I had the exact same problem before realising there was an update waiting. Now I've installed the update my preview matches what appears on the simulator.
How I got this fixed is by updating Xcode to the latest version. And then recreated the NIB/Storyboard files that were created using the previous version of Xcode. It started working. Weird fix :/
This is a constraints issue.
Some constraints are not set properly or not set at all. Once all constraint issues are resolved, you would see the simulator and preview matching exactly!
For anyone experiencing this issue in Xcode 8 and all all your constraints are in place (i.e. no warnings or errors) what solved it for me was quitting the simulator and restarting the app through Xcode again.