I am using XCode 6.4. I have quite a big Storyboard, and sometimes, when I open it, lots of warnings appear out of the blue, saying I have misplaced views, without touching anything. Everything was fine before, and the misplaced views are in every single viewcontroller. I add most of the constraints manually.
Any ideas what I might be doing wrong, or why suddenly everything moves?
EDIT
I pull from the repo, open XCode, and then all the warnings appear. If I git status, the storyboard has changed.
The difference between the versions is on the systemVersion attribute on the Storyboard. That change probably happens automatically when someone else with another configuration opens the project and then commits the changes.
This (long) question is related: Xcode changes unmodified storyboard and XIB files. However, my problem is not on the class attribute, but on the systemVersion
Related
I'm using Xcode 9 Version 9.1 (9B55). There is something strange happening in a storyboard. Some of my views are are messed up, and I don't know what is the reason.
It looks like this:
EDITED
However, all my constraints are set right, and when I run the project on different simulators and on a physical device, everything looks fine. Here how it looks on a simulator/physical device:
I don't know what is the reason for this kind of behaviour but it makes impossible to work in a storyboard. I think, this problem has appeared quite recently. Sometimes, after reloading the Xcode, views again look fine, but when I start working with storyboard (adding new views, changing constraints or even just tapping on a constraint to see its constant), they again become messed up. Does anybody have this kind of issue, and how this could be solved?
After closing and opening Storyboard, the issue goes away! I think it's just an issue in x-code 9.
As a quick fix, try changing the spacing on one of your stack views instead of closing and reopening Xcode. Toggling the spacing brings back the views in my case.
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 ?
I have a xcode project with buttons and other objects in it. But the objects are all greyed out in my view now. The project still compiles and shows the buttons fine. I saw posts about using auto-layout, changing size-classes, and modifying the IB. But whenever I make any of those changes, a lock icon shows on the screen and nothing changes. I can go back to an old version of my code, but I'd rather find out what will fix the issue.
What was I doing to break it? I was just exploring through the different xcode windows and views, and don't know exactly when the viewcontroller objects became affected.
I have seen simialr posts on this issue, but none of the answers have worked for me.
When I make changes to xibs in Interface Builder, they do not show at runtime. So far I have tried the following:
Clean
Clean Build Folder
Reset Content on Simulator
Restarted XCode
Restarted the simulator
I've tried all of these steps in about every conceivable order, but still no changes in IB can be seen when I run the app. Earlier today, my changes were showing, so I do know that the xibs are definitely loading. I believe something has gotten hosed in XCode, perhaps? Any suggestions?
I have a weird problem
I made some changes in storyboard iPad, but the changes weren't effected, so I tried to delete the storyboard, and the project STILL COMPILED.
Anyone tell me why?