Xcode's XIB and Storyboard's UIElements are not visible - ios

I am using Xcode 11.5, sometime UIElements on XIB or Storyboard file are not visible. Only blue placeholder rectangles are visible. If clean the project, delete derived data, quit and reopen the project it works but sometime not. I faced same issue in older Xcode version also. Any solution?

Related

This version does not support collection view cell content view. Open this document with at least Xcode 11.0

I was excited to check out Xcode 11 with my existing xCode project, so I started coding with the latest beta version. Today I wanted to upload my new app update but of course Apple rejected the binaries advising me, to use a GM version of Xcode 11 (not released yet) or the latest Xcode 10 app.
I was able to revert all changes made by Xcode 11 (provisioning profile, etc.) and opened the project back in Xcode 10 but I stuck in an error saying
This version does not support collection view cell content view. Open
this document with at least Xcode 11.0.
I am not able to build, archive or even open the storyboard in xCode 10. I found a single collection view in my storyboard in Xcode 11 which I created using the beta. But also after deleting the entire UICollectionViewController incl. the cells and cleaning the project, I am not able open the storyboard back in Xcode 10.
I've read accepted answer, but it wasn't obvious where to find "property" which could be just switched off or something like.
To make it more clear: you just need to replace all occurencies of collectionViewCellContentView with view in storyboard source code. For example see screenshot:
Next, rebuild and Xcode will remove <capability name="collection view cell content view" minToolsVersion="11.0"/> requirement; or remove it manually if you're using Xcode 10.
Hope will be helpful.
EDIT
Found how to "switch off" using of collection view cell content view, but you'll still need Xcode 11 to open storyboard. Change size to Default in collection view cell prototype size inspector:
Try to open the storyboard file with a text editor and search for the property. Usually when there is a warning, Xcode will show this warning during compile time. See if double-clicking the warning redirects you to the line of code where the problem occurs.
Just go to your storyboard which is not opening. Right click on it , Open it with Source Code and search for the property which is not allowing xcode to open your Storyboard.
Search for the property e.g "collection view content view".
Delete that property block. Now Open your Story board as an Interface Builder.
Note: By Deleting the property you will lost that in your view controller screen. :)

Xcode 11 Beta - Storyboard ViewControllers Appears Black

I have updated by Xcode to Xcode 11 Beta and have updated the build settings from iOS 12.2 to iOS 13. Everything is working perfectly but the viewcontrollers in Storyboard appear black. The components of the viewcontrollers are present but it is difficult to preview due to the black screens
Had this same issue, eventually tracked it down by cut-pasting elements from the black screen to a brand new view controller and see which ones cause the new one to have the same error, or caused the old one to render.
After fixing it, the diff ended up being a background image on a specific UIButton.
I found that after updating to Xcode 11 if one element has an issue, it breaks the whole storyboard like your screenshot.
I had this issue last night. My UITableView was expanding too far out of the screen on the right hand side. I dragged it back into the bounds of the UIViewController parent and updated the right hand side constraint to be 0.
So check if anything goes beyond the UIViewController boundary that shouldn't.
In Xcode 12.4
After trying lots of thing, finally i resolved my issue
First close your project.
just goto finder -> Application -> Xcode -> get info -> uncheck open using Rosetta
Now, simply open your project.
Just delete any constrain in that viewcontroller and then undo the change.
Check the values for the cell heights. In opening an older project, the row height (in the TableView itself) was 0. Changing it to a positive value or deleting the value (so it defaults to automatic) fixed the issue for me.
I had the same issue, here are the steps I followed.
Clear constraints, for my case the source was from UITableView, and make sure constraints are attached to safearea not superview.
From the toolbar on the top, go to Editor > Canvas > Layout Rectangle. It is very important to repeat this step 3 times.
Once finished, quit XCode and reopen it again and everything should be fixed. I've noticed this happens when I'm switching views for different devices 8, 11, 4s.
I don't know exactly what the problem was, but I was able to solve it with the following steps.
Run 'pod install' to install all cocoapods dependencies
In Xcode: Product -> Clean Build Folder
Restart Xcode and run the project

Xcode 9.2 Interface builder not showing objects during runtime

Out of the blue today, I wanted to add a UIButton via Interface builder, but I noticed the button doesn't appear on the screen when I run the app?!
I have multiple views, and on all of them adding an object (button, textview etc) via IB will not show when the app is build and runned?!
I cleaned the project, removed derived data, restarted xcode, even used an backup (previous) version of the app, no joy...
Any others experiencing this issue? this is on xcode 9.2

XCode Storyboard is empty and changes not visible on it

I have a serious problem on XCode. I can not see my storyboards correctly even they are full of elements. Sometimes elements are visible after I restart the XCode but later it happens again. Another issue is that even I change fonts or change locations of elements its not visible on storyboard until I restart the XCode.
XCode version is: 8.2.1 (8C1002)
You can see in the image that storyboard is transparent.

Move from xib to storyboard

I have an app that has a single XIB file for the interface. I'd like to move to storyboard. I've created the storyboard, add all of the relevant UI elements and linked them to the header file (IBoutlets). I've gone to my project summary and selected my storyboard in the iPad deployment section.
My problem is that the app is still using the XIB, rather than my storyboard. Any ideas?
Switching from Xib to Storyboard is still buggy...
Delete the App manually from your iPhone/simulator or restore the simulator. Clear your Project, etc. Maybe you have to restart Xcode too.

Resources