Why does the keyboard not appear on the iPhone X simulator in Xcode 9? - ios-simulator

I just ran an app that I am developing on the iPhone X simulator in Xcode 9.1. The soft keyboard doesn't appear when I tap inside of a UITextView. It works fine in the iPhone 8 simulator. To trouble shoot I ran the calendar app on the iPhone X simulator and selected the search icon. Again, no keyboard popped up.
Anyone else seeing this behavior or have a fix?

The reason this was happening to me was because the hardware keyboard was on, so the soft keyboard wouldn't appear. Shift + CMD + K fixed it. Not sure why that was on by default though.

In my case the keyboard is affected by the blue-tooth selfie stick. Reset iPhone blue-tooth which disconnects the selfie stick fixed the problem.

Related

Awesome WM - How to Prevent freerdp from grabbing keyboard in fullscreen mode?

I made a dock to start several programms. It appears when the mouse touches the screen border.
When I use xfreerdp in multimonitor mode xfreerdp will automaticaly open in fullscreen mode and grabs the keyboard.
After that, I start e.g. firefox from my dock, however I can´t use the keyboard, because xfreerdp doesn`t release it.
At the moment I use a workarround and minimize xfreerdp when it is in fullscreen mode and looses the focus.
However I wonder if is not possible for awesome to force xfreerdp to release the keyboard?
Thanks in advance.
PS. The xfreerdp "Right-Ctrl ungrab feature" doesn't work for me.

Why is my cursor not showing in Mobile VR? (1.0.4)

I noticed the 360 Image Gallery example on the Aframe.io website is broken so I have been trying to fix it.
I've got it to work on Desktop and 2D mobile browser, but when I switch to VR mode in my mobile (iPhone) browser, there is no cursor and I can't change scenes anymore.
What am I missing?
https://glitch.com/edit/#!/bubble-glitter-specialist
Thank you!
Something change in Safari iOS 13.4.1 that broke VR mode. More info at https://github.com/aframevr/aframe/issues/4554

How to change the iOS Simulator "window background color" (Full Screen, Xcode 10, Mojave, Dark Mode)

Mojave (macOS 10.14) is great.
Xcode 10.0 (10A254a) is great.
Dark Mode is great.
What is not so great, unless I'm missing something, is this ugly gray background of the iOS simulator window (when in full screen):
Any idea on how to change that color?
If anybody still struggles with this here is somewhat a solution: toggle "Show Device Bezels" in the window menu of the simulator will do the trick. However this needs to be done each time the simulator is started....
I have the answer you seek.
Boot into recovery mode (Cmd+R while booting) and then open the Terminal.
cd /Volumes/Macintosh\ HD //if your drive is named something different, replace accordingly
csrutil disable //disables System Integrity Protection
mkdir AppleInternal //activates testing and custom commands in Apple apps, including Simulator
csrutil enable //re-enable System Integrity Protection
reboot //back to regular environment
Now there's an "Internal" menu in the Simulator. In here, you can change loads of settings including the window's background color. It uses the regular OS X colour picker so you can even choose a hex code.
The correct answer to this (I'm on Catalina 10.15.7): Change your desktop background to the desired color. The simulator adapts to the color with a different opacity (or alpha?!) value when in fullscreen mode.

iOS Simulator Screenshots "Wrong Size" for iTunes Connect

I am taking screenshots from my iOS Simulator and trying to put them into iTunes Connect but it continues to tell me that I have the wrong size. They are the same size with the pictures that are already in iTunes Connect. What just happened?
For people who need to scale the window size of the simulator, turn off "Optimize Rendering for Window Scale". It's under "Debug" menu.
It would give you the screenshots of the device dimension.
iPhone 6.5 display screenshot specifications lists iPhone Xs Max and iPhone Xr which is misleading. You must take screenshots using the iPhone Xs Max simulator which generates a 1242x2688 image. iPhone Xr screenshots are 828x1792 and will be rejected.
"Debug > Optimize Rendering for Window Scale" does not exist in Xcode 10.2
Looks like iOS simulator started scaling screenshots. Just check its real size if you are using iOS simulator with non-100% scale.
For Xcode 11.0
Select simulator iPhone 11 ProMax
Window -> Physical size
File -> New Screen Shot
Resolution must be:
1242 x 2688 pixels (portrait)
2688 x 1242 pixels (landscape)
Above will be valid in iTunes Connect for:
6.5-inch Display
5.8-inch Display
For 5.5-inch Display and lower size use iPhone 8+ simulator
Resolutions reference
https://help.apple.com/app-store-connect/#/devd274dd925
I solved my problem this way:
I set simulator to physical size: Window > Physical Size (Shortcut:
command + 1)
I set High-Quality Graphics: Debug > Graphics Quality Override > High Quality
I used Xcode Version 11.3.1 and I make screenshots as follows:
for iPhone 6.5" Display - 1242 x 2688(portrait): simulator iPhone 11 Pro Max
for iPhone 5.5" Display - 1242 x 2208(portrait): simulator iPhone 8 Plus
for iPad Pro (3rd and 2nd generation) 12.9" Display - 2048 x 2732(portrait): simulator iPad Pro (12.9-inch) (3rd / 5th generation)
If you are using Xcode 9. Window > Zoom and take screenshot.
When using the 8Plus simulator all issues might be solved.
Give it a try.
On a 13" MBP using Xcode 11, Simulator using iPhone 11 Pro Max produced 1242 × 2688 screenshots accepted by App Store Connect for 6.5".
iPhone 11 only generated 828 × 1792.
Working for Xcode 9:
Uncheck Optimize Rendering for Window Size in the Debug menu.
Uncheck Show Device Bezels option in the Window menu.
Uncheck Physical Device option in the Window menu. (CMD + 1)
Click Zoomoption again in the Window menu. The simulator will take height equal to Mac's screen height.
In my case resolution of a screenshot is 1242 × 2208 for 5.5" Display and 2048 × 2732 for 12.9" Display(iPad).
Tested on iPhone 7 Plus, 8 Plus & iPad Pro (12.9").
I solved the problem by changing the scale of the simulator : Window -> Scale -> 100%
If you choose an other scale, the screenshots will also be scaled.
None of the above worked for me on XCode 10.2.1. The solution was to set High Quality under Debug --> Graphics Quality Override
For Xcode 12 / Simulator 12
In the Simulator, I had to choose Window > Pixel Accurate (or Command + 3).
On my mac book pro, this makes the simulator taller than the screen, making screenshots with Shift + Command + 5 impossible. Luckily, the Simulator has the Edit > Copy Screen command (or Control + Command + C), which will make a perfect copy of the simulator contents, and which includes the portion of the simulator that you can't see.
Paste the copied screen image into your preferred image editor and save as .png.
There seems to be an issue with some versions of the simulator. Simply setting "Optimize Rendering for Window Scale" as #Semloh suggested wasn't enough for me and my screenshots would be too small as I was doing this on an Macbook Air.
I was able to overcome this by turning bezels off, dragging the window to the bottom of the screen and then resizing it by dragging the top left corner to the top of the screen.
I did this this once/twice for getting iPhone screenshots and 2/3 times for getting iPad screenshots - the window would snap the the full height of the viewport but each screenshot would be successively bigger.
The size of the screenshot will max out at the appropriate size of the device.
Mine wasn't working at all uploading at App Store Connect, so I refreshed the upload page and now it works... give it a try
XCode 13.4.1:
I was trying to take screenshots for the 6.5" category ("6.5 inch (iPhone 13 Pro Max, iPhone 12 Pro Max, iPhone 11 Pro Max, iPhone 11, iPhone XS Max, iPhone XR").
I was trying in the iPhone 11 Simulator, and tried literally every different configuration available in Preferences and menu bar options. I'm using XCode 13.4.1 and many of the suggestions in this thread don't exist in this version.
I then tried again using the iPhone 13 Pro Max Simulator, and it took the correct size screenshots perfectly. So, my advice is to try another Simulator in the category you need.

iOS 7 Simulator showing screen but not phone

Installed Xcode 5 and compiled my app to use iOS 7. However when I run the simulator it only shows the screen of the phone and not the complete phone e.g. the phone body with the home button. Can continue developing my app but would like to understand where I am going wrong. Grateful for any help.
The Retina Versions of the iOS Simulator iPhone does no longer have the iPhone frame, which is kind of sad.
The only way to have the frame back is to run the App in iOS 6.1 mode of the non-Retina iPhone. But I guess, that does not make much sense...
When active simulator device and then select this option
window -> Show Device Bezels
simulator without frame
simulator with frame
In iOS Simulator, Go to Window -> Scale -> 100% or Command-1.
You can adjust the scale size as you wish using Command-2 for 75% and Command-3 for 50%
I lost the iphone frame on the simulator after I plugged into a projector. After messing around with the display settings, I finally was able to restore the iphone frame:
Go to System Preferences -> display and set it to scaled, More Space. Now in your iOS simulator, set the scale to 100% (CMD+1).
Hope that works for you too.
I think you guys need the iPhone frame to press the home button/close background tasks in simulator.
Use Cmd key+shift+H for Home button operation
Use Cmd Key+ shift+H(press H twice holding window and shift) Displays list of background tasks
Are you using the latest XCode build?
In the first Beta-version of Xcode 5, the simulator use to not show the external iPhone frame.

Resources