I haven't done anything funky with my code, and am running the latest version of XCode, but for some reason when I run a build on the simulator, everything works perfectly except for the fact that it's upside down. Any idea why that could be the case?
Thanks in advance.
Android Simulators can be rotated using the following hotkeys: Linux – Ctrl + F12. Mac – Fn + Left Ctrl + F12. Windows – Left Ctrl + F11 or Left Ctrl + FF12.
To launch a Simulator without running an appChoose Xcode > Open Developer Tool > Simulator. Control-click the Xcode icon in the Dock, and from the shortcut menu, choose Open Developer Tool > Simulator.
Simctl is a tool to help manage and programmatically interface with the simulator. You can access simctl using the xcrun command-line tool. Now, you'll explore several of these subcommands. Run the following: xcrun simctl list. The list command shows the list of all the available devices and the runtimes.
I had (have) this problem also. At first I though I found it when I created a fresh app and compared the Info.plist and discovered my app had the Supported Device Orientations different from the fresh app.
Specifically, I had Portrait Top above Portrait Bottom. After I put the Portrait Bottom at the head of the list the problem disappeared.
Or so I thought. I reorganized the main folder and put all the PNG files into a Resources folder. Deleted the old references in the project and add in the new locations and now the problem is back.
Also, noted the problem is occuring on the actual iOS device. You can see in this launch pix the status bar and picture are both upside down. As soon as my mainView loads the view orients correctly and becomes upright in the Portrait Top orientation.
[Picture of the launch1
There has to be something about the project file that is causing this. Still searching.
Looking around I found [this2 which states the order is important and the top most is the inital view. So now I am really puzzled as the Portrait Bottom is at the head of the list.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With