Simuator selection shortcut not visible - ios

I have attached a screenshot of the problem.
I am able to select the device using the product menu but there is no shortcut visible in the toolbar to select the device.

Go to View/Show Toolbar and click it.

Just Restart Xcode. Same problem i have faced Xcode Restart resolved the issue.

I've seen this before. The issue in my case was that the run destinations list would disappear if the window was too narrow. If you resize the window to be wider, it should pop back in.

Related

Xcode 12 SwiftUI cannot find Automatic Preview

I am working on an app in SwiftUI in Xcode 12.2.
I have accidentally deleted the Automatic Preview Tab. I cannot seem to find the option to bring it back. Here is a screenshot of my Xcode:
Where do I enable the Automatic preview and bring it back so I can see real-time updates of my UI?
An easy way to find it is from the menu "Editor > Canvas"
In your Xcode snapshot, there is a button the top right corner with a bunch of horizontal lines. Click it and then click Canvas and the preview should come back. FYI, the preview canvas is different than a Storyboard, which is what you included in the "What I want" image.

Xcode Playgrounds Showing "Empty Image"

I downloaded Xcode 9.2 today and, admittedly I haven't attempted to do so in a while, I tried to render a view in the playground and kept getting a "empty image" in the sidebar.
Anyone know what's up?
I had the same issue, click the assistant editor to view the UI.
In the picture below, it's the icon highlighted in blue.
#Sam P gave the correct hint, however I don't see such button in Xcode 11.2.1 Playgrounds interface.
Enable Live View in the menu on the top right:
And the preview pops up:
I find it strange that they didn't make it any obvious :/

Xcode storyboard changes not showing on device or simulator

This is driving me nuts.
My app was running normally and then I don't know what I did but any changes I now make in the storyboard/ IB/ Xibs etc are not updating when I run the app either on real device or simulator. For instance, I changed the textColor of UILabel but when I run the app, the old color still shows both on device or simulator. I am using Xcode Version 7.3.1.
Please help. Thanks
This solution had worked for me:
Just delete that storyboard in which changes are not reflecting and take new storyboard instead it will start reflecting changes.
When you have the simulator open.
Click and hold down your app icon
When you seen the icons shaking and "X" in their Top Left, Click to delete it
Do the same for any other App Icons you may have showing in the Simulator Home screen
In Simulator menu at top - Click "HardWare" -- "Home" to stop icons shaking
In same menu Click "HardWare" -- "Reboot" (Wait for this to complete)
Quit Simulator from its menu "Quit Simulator"
(nb: when using device to run app, I would delete it from app as well)
Then Go back to Xcode
click in to menu "Product" -- "Clean"
Quit Xcode and open up again
Run Simulator on the iPhone Simulator Size you just cleaned out (above)
I've tried to simulate the issue you're having but unable to, however, when I have any issues on running my apps, the above seems to work.
[ Sometimes Xcode can be a bit slow, so I tend to wait a few seconds to confirm it / Xcode has actioned it, as I sometimes used the keyboard too fast for it to keep up.]
Hope this helps!
Hopefully to save someone some frustration, I had this same problem and figured out that I must have accidentally hit Command+d while trying to copy something and duplicated the scene. The duplicate was laid perfectly over the original so I couldn't tell I was editing the duplicate instead of the actual scene linked to my navigation controller. I was so focused on the problem I didn't notice the new warning for an unreachable scene in my storyboard.
When my Main.storyboard was not saving (its file icon remained grey after clean+build), I found that running git add -u and git commit -m "//your comment" in my terminal would change the Main.storyboard file icon to yellow again (not grey)
Try removing all constraints from the changes you made and then reapply them. That is what worked for me.

Device And Run Icons lost in xcode 7

I have installed xcode 7 and run many apps on the same. But suddenly when i restart the xcode it hides the device header and run icons in top left bar.
Thanks in advance for help !
This is a exsisting bug with XCode 7 I see on our systems.
It happens when more than one project are open at a time.
The first Window will keep its bar, but all other will open without it. Sometimes hiding/showing the toolbar help, but that works only two times or so. Then a restart of XCode is the only cure.
Apparently you hid the toolbar. To reenable it: Select View -> Show Toolbar

Inspector size on xcode 5 is showing nothing

In xcode 5 with iOS7 target project the size inspector in storyboard is not work. When I have one element selected like a button, view or anything else and I go to size inspector of storyboard all is empty showing nothing.
I tried restarting Xcode, unchecking Autolayout, uninstalling an reinstall Xcode and nothing. This problem persists.
Is very strange that on other Macs I open the project and size inspector works correctly then not is a project issue.
If someone have the same problem and solve it. Please tell me how can I fix.
Thanks.
The answer that helped me is here. MouseOver "View" shows Button "Show".
Reinstall of MAC OS X solves this issue 100%. In inspector size. But in size inspector you've probably noticed the "Show"|"Hide" watermark an the right top corner of panel. I agree that these hidden invisible buttons in IB is not the best solution in terms of UX. But Apple knows better :)

Resources