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?
Related
Wondering if anyone else has run into this problem and knows how to solve it. I have 3 vertical stack views, each consisting of a text view and label. They are all contained in one super stack view. The app runs fine for each device on the simmulator. When I connect my iphone and run on that device, I get missing constraints in the storyboard and the fields are all misaligned. The strange thing is that even with the alignment errors, the app runs fine in all the simulated devices and my actual iPhone, with the alignment being perfect - not as seen on the storyboard. I have tried the various options - update constraints, update frames, reset to suggested constraints, etc. - but it doesn't get back to where it should be. I am working with a copy of my project. I did File-Duplicate in the finder. It is really annoying because each time I have to backtrack.
Picture of errors and messy screen
I was researching similar problems on the web and came across one post/article that mentioned downloading something called "Duplicate" to copy folders from the finder vs directly from the finder.
I downloaded it and followed instructions to copy the same folder my problem app was copied from. I ran it on all the simulator devices and my own iPhone without any issues. I'm hoping the problem was that everything wasn't copied over correctly from finder the first time and that now, using Duplicate, it is and it resolves the problem. I'll add to this if the subject problem emerges again.
link to the post I found
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
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)
My application was working fine on the Simulator yesterday, today not so much. It shows a black screen consistently, however it deploys and runs fine on device. I've tried so far: resetting the Simulator content and settings, clearing derived data, clean building, ensuring that the Main storyboard is set as the Main user interface, restoring from git to a much earlier build in case something else had broken, restarting both Xcode and Simulator.
Is there something I've missed?
So to fix it I had to go into General for the target, remove the reference for my Storyboard from Main Interface, build it and run it, and then read the reference. I'm assuming that something was broken in the build process which running a Clean didn't fix.
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/