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.
1 Answer
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:
- Choose Edit Scheme: CMD + <
- Under Run -> Info: Change the Build Configuration from "Debug" to "Release". Then change it back to "Debug"
- Press Close
- 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!
-
2Ultimately all you need to do is tweak anything in the scheme so that it updates, and then the simulator problem goes away. Oct 12, 2017 at 16:22