Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 9 - How to remember the latest simulator

I select and run the app on the iPhone 8 simulator. Then, I quit and reopen Xcode. The iPhone 8 Plus is selected by default. How to remember the latest simulator on Xcode 9? My project is using CocoaPods.

like image 787
Danh Huynh Avatar asked Sep 20 '17 12:09

Danh Huynh


People also ask

How do I select simulator in Xcode?

Open Xcode and click Menu > Xcode > Preferences > Select Components, and then choose the simulator version you want to download. When a simulator is opened from AppStudio, AppStudio Player automatically installs (if necessary) and opens in it.

How do you open a specific simulator on a Mac?

The basic way to open a list of simulators is to use Xcode -> Window -> Devices and Simulators. Here you can create and manage all available simulators. But you cannot run them directly. You need to build your application on the simulator, and then you can run it.

How do I wipe data from simulator?

To remove all data and settings from an iOS simulator, just click Device then select Erase All Content and Settings from the drop-down menu: A confirm dialog will show up. Click on the Erase button: The process will take a while to finish.

How do I delete all simulator data in Xcode?

In the iOS Simulator, press iOS Simulator in the menu at the top of the screen, and press 'Reset Content and Settings...'. This will clear the entire simulator.

What is iOS Simulator in Xcode 9?

iOS Simulator is an integral part of any iOS development process. We just can’t ignore it. New Simulator from Xcode 9 brings a lot of useful tricks, which could make you even more productive. Finally, Apple recalled they have Simulator out there!

Is it possible to record the screen in Xcode 9?

In the official “What’s new” document for Xcode 9, Apple claims that now you can record a video of simulator’s screen. It’s not completely true. You can do it even in the older versions with simctl.

What version of iOS do I need for iOS simulators?

Each simulator comes with a particular OS version such as iOS 14.1, iOS 15.0, iOS 15.2, tvOS 14.0, watchOS 7.0, etc. You can easily install the one you need via Xcode. This article shows you how to do so in Xcode 12.x, Xcode 13.x, and newer. 1.

How to use simulator with Xcode in full-screen mode?

When you have 13″ screen the full-screen mode for Xcode is a just life saver. Unfortunately, you couldn’t use Simulator with Xcode in the full-screen mode previously. Well now you can This feature is enabled by default starting from Xcode 9b3. So you don’t even need to do anything to make it work.


1 Answers

Even newly created projects seem to exhibit this behavior. To resolve this, here is the hack I've found that appears to correct the problem. Unfortunately you need to do this for every project:

  1. Choose Edit Scheme: CMD + <
  2. Under Run -> Info: Change the Build Configuration from "Debug" to "Release". Then change it back to "Debug"
  3. Press Close
  4. Change to the simulator you'd like to use, and close project.

Upon opening the project again, it should remember what simulator you had it left at. Hope this helps you as well!

like image 108
Causaelity Avatar answered Oct 17 '22 07:10

Causaelity