Retired Document Important: The information in this document is deprecated in Xcode 9. For Xcode 9 and later, see Simulator Help by choosing Help Simulator Help in Simulator. Getting Started in Simulator Simulator app, available within Xcode, presents the iPhone, iPad, or Apple Watch user interface in a window on your Mac computer. You interact with Simulator by using the keyboard and the mouse to emulate taps, device rotation, and other user actions. The chapter presents the basics of using Simulator. You can perform these steps using your own iOS app or, if you do not have an app to use, with the HelloWorld sample code. For more detailed information on interacting with Simulator and using it to test and debug your apps, refer to the later chapters in this guide.
Access Simulator from Xcode There are two different ways to access Simulator through Xcode. The first way is to run your app in Simulator, and the second way is to launch Simulator without running an app. Running Your iOS App When testing an app in Simulator, it is easiest to launch and run your app in Simulator directly from your Xcode project. To run your app in Simulator, choose an iOS simulator—for example, iPhone 6 Plus, iPad Air, or iPhone 6 + Apple Watch - 38mm—from the Xcode scheme pop-up menu, and click Run. Xcode builds your project and then launches the most recent version of your app running in Simulator on your Mac screen, as shown in Figure 1-1. Figure 1-1 Simulated iPhone running the HelloWorld app. Note: If you are testing an app with a deployment target of iPad, you can test only on a simulated iPad.
Super Slime Simulator is SQUISH certified by NATO, the UN and the Imperial Senate;) App features: - Play with your simulated slime right on your phone. - Realistic slime simulation: Stretch it, squish it, knead it, pop it - just like real slime! - Rich slime gallery: Gooey, fluffy, cheesy, glittering and many more. Smartface allows you to emulate your iOS and Android application on a Windows PC with a single click. To emulate your application on any iOS device, like an iPad emulator or an iPhone emulator, download Smartface app from the iOS App Store and connect your iOS device to your Windows machine.
If you are testing an app with a deployment target of iPhone or universal, you can test on either a simulated iPhone or a simulated iPad. Running Your watchOS App To run your WatckKit app, choose a combination of an iOS device and watchOS device from the Xcode scheme pop-up menu. For example, to run the watch app in a 38mm watch paired with an iPhone 6, choose 'iPhone 6 + Apple Watch - 38mm' from the scheme pop-up menu. Running the WatchKit target launches two simulators, one for the iOS device and one for the watchOS device. Figure 1-2 shows an iPhone 6 and a 42mm watch running in two different simulators. Figure 1-2 Simulated iPhone and watch Running Your tvOS App To run your tvOS App, choose a tvOS device from the Xcode scheme pop-up menu.
Running the tvOS target launches the most recent version of your app in a simulated new Apple TV device, as shown in Figure 1-3. Figure 1-3 Simulating tvOS Launching Simulator Without Running an App At times, you may want to launch Simulator without running an app. This approach is helpful if you want to test how your app launches from the Home screen of a device or if you want to test a web app in Safari on a simulated iOS device. To launch a Simulator without running an app. Launch Xcode.
Do one of the following:. Choose Xcode Open Developer Tool Simulator. Control-click the Xcode icon in the Dock, and from the shortcut menu, choose Open Developer Tool Simulator. To launch a watchOS Simulator without running an app. Launch Xcode.
Do one of the following:. Choose Xcode Open Developer Tool Simulator (watchOS).
Control-click the Xcode icon in the Dock, and from the shortcut menu, choose Open Developer Tool Simulator (watchOS). Simulator opens and displays the Home screen of whichever simulated device was last used. View the Installed Apps From the Home screen, you have access to all of the apps that are installed in the simulation environment. There are two ways to access the Home screen in Simulator from your app:. Press Command-Shift-H.
Choose Hardware Home. Use the installed apps to test your app’s interaction with them.
For example, if you are testing a game, you can use Simulator to ensure that the game is using Game Center correctly. IOS Device Home Screen Much like the Home screen on an iOS device, the simulator’s iOS Home screen has multiple pages.
After clicking the Home button (or accessing the Home screen through the Hardware menu), you arrive at the second page of the Home screen. To get to the first page, where all of the preinstalled apps are found, swipe to the first Home screen by dragging to the right on the simulator screen. On the Home screen, you see that all of the apps that have been preloaded into Simulator. See iOS Device Home Screen. Figure 1-4 Home screen for a simulated iOS device The apps that you see on the Home screen are specific to the iOS device simulation environment. Because Passbook and the Health app are available only for the iPhone, these apps don’t appear if you are simulating a legacy device or an unsupported device type.
WatchOS Device Home Screen The Home screen for a simulated watchOS device behaves the same as it would on an actual device. You can click and drag to simulate the finger dragging around the screen and launch an app by clicking on it.
Figure 1-4 shows the home screen of a 42mm watch with a developer app, the Lister sample code. Figure 1-5 Home screen for a simulated watchOS device Use Safari to Test Web Apps From the Home screen, you can access Safari within Simulator. Use Safari to test your iOS web apps directly on your Mac. From the Home screen, click Safari. In the address field in Safari, type the URL of your web app and press the Return key. If your Mac is connected to the Internet, it displays the mobile version of the URL you specified.
For example, type apple.com into the address field and press Return. Safari displays the Apple website. See Figure 1-6. Figure 1-6 The Apple website running in Safari in Simulator Use Maps to Simulate Location Awareness Simulator provides tools to assist you in debugging your apps. One of the many features you can debug in Simulator is location awareness within your app.
Set a location by choosing Debug Location location of choice. The menu has items to simulate a static location or following a route. A simulated watchOS device with the location set to None checks the paired iPhone device for the location. You can specify your own location, which can be seen in the Maps app. From the Home screen, click Maps.
Choose Debug Location Custom Location. In the window that appears, type the number 40.75 in the latitude field and the number -73.75 in the longitude field.
Click the Current Location button in the bottom-left corner of the simulated device screen. After completing this task, notice that the blue dot representing your location is in New York, NY, near the Long Island Expressway, as shown in Figure 1-7.
Figure 1-7 Running Maps and simulating a latitude and longitude in Simulator Change the Simulated Device and OS Version Simulator provides the ability to simulate many different combinations of device type and OS version. A device type is a model of iPhone, iPad, or Apple TV. Some iPhone devices can also have a paired Apple Watch. Each device-OS combination has its own simulation environment with its own settings and apps. Simulator provides simulators for common device-iOS, device-watchOS-iOS device, and device-tvOS combinations. You can also add simulators for a specific combination you want to test. However, not all device type and OS version combinations are available.
Note: To test apps for the iPad mini, use a simulated iPad with the same pixel resolution as the iPad mini. You can switch between different device-OS combinations. Switching closes the window for the existing device and then opens a new window with the selected device. The existing device goes through a normal OS shutdown sequence, though the timeout might be longer than the one on a real device.
The new device goes through a normal OS startup sequence. To change the simulated device. Choose a Hardware Device device of choice.
Simulator closes the active device window and opens a new window with the selected device. If the device type and OS version combination you want to use is not in the Device submenu, create a simulator for it.
To add a simulator. Choose Hardware Device Manage Devices.
Xcode opens the Devices window. At the bottom of the left column, click the Add button (+). In the dialog that appears, enter a name in the Simulator Name text field and choose the device from the Device Type pop-up menu. Choose the OS version from the iOS Version pop-up menu. Alternatively, if the iOS version you want to use isn’t in the iOS Version pop-up menu, choose “Download more simulators” and follow the steps to download a simulator. Click Create. If the OS version you want to use is not installed, download it and follow the steps to add a simulator again.
To download a simulator. In Xcode, choose Xcode Preferences. In the Preferences window, click Downloads. In Components, find the legacy simulator version you want to add, and click the Install button. You can also delete and rename simulators in the Devices window. To delete a simulator.
In Simulator, choose Hardware Device Manage Devices, or in Xcode, choose Window Devices. Xcode opens the Devices window. In the left column, select the simulator. At the bottom of the left column, click the Action button (the gear next to the Add button).
Choose Delete from the Action menu. In the dialog that appears, click Delete. To rename a simulator, choose Rename from the Action menu and enter a new name. For how to manage real devices that appear in the Devices window, read. Alter the Settings of the Simulated Device You can alter the settings within Simulator to help test your app. On a simulated device, use the Settings app. To open the Settings app, go to the Home screen and click or on tvOS, choose Settings.
In Figure 1-8 you see the Settings app as it appears when launched in the iOS simulation environment. Figure 1-8 Example of the Settings app in a simulated iPad device The Simulator settings differ from the settings found on a hardware device.
Simulator is designed for testing your apps, whereas a hardware device is designed for use. Because Simulator is designed for testing apps, its settings are naturally focused on testing, too. For example, in a simulated iOS device the Accessibility menu provides the ability to turn on the Accessibility Inspector, and the Accessibility menu on a device allows you to turn on and off different accessibility features. Through the settings, you can test both accessibility and localization of your app. See for information on how to manipulate your settings for the various types of testing you are interested in.
Remember: Changes made in the Settings app of simulated device affect only the simulation environment that is currently running. Rotate iOS Devices You can use Simulator to manipulate the simulated device much as you do a physical device. To rotate your simulated device, choose Hardware Rotate Left. When you rotate your simulated device, Settings rotates (see Figure 1-9), just as it would on a hardware device. Figure 1-9 A rotated simulated iPad running in the iOS simulation environment Test in Simulator and on a Device Simulator is designed to assist you in designing, rapidly prototyping, and testing your app, but it should never serve as your sole platform for testing.
One reason is that not all apps are available in the simulator. For example, the Camera app is available only on hardware devices and cannot be replicated in the simulator. In addition, not all bugs and performance problems can be caught through testing in Simulator alone. You’ll learn more about performance differences in. You can also find more information on testing your app on a device in Launching Your App on Devices in App Distribution Guide. Quit Simulator Simulator continues running until you quit it. Quitting Xcode will not close Simulator because they are separate applications.
Similarly quitting simulator will not close Xcode. To quit Simulator, choose Simulator Quit Simulator. The device is shut down, terminating any running apps.
Ever wondered, how does it feel to be in a supersonic jet? How to manage a fast track race? If not, you don’t need to be either a pilot or a race organizer; all you need is an iPhone. If you are one of those, who like to build castles in the air, we will give you a list of games that helps.
We have handpicked 10 best simulation games for iPhone, especially for you. Right from farming, car driving, bike racing to space adventure, we have packed them all!
So, jump over to pick out a dashing game to kickstart the contest! Sponsored Links Best Simulation Games for iPhone and iPad in 2019 #1. Bike Race: Motorcycle Racing So much about car racing?
Let’s give a chance to nerve-wracking bike racing! Drive your bike with fantastic speed and zoom past different tracks with tons of jumps and loops. Loaded with some challenging tracks, you won’t get much time to breathe. And don’t forget to collect the hard-earned stars to unlock new levels.
This fast-paced physics-based game has got everything to keep you racing for hours! Sponsored Links #2. Driving Academy 2017 Simulator Willing to master your driving skill?
You can’t get better than Driving Academy. The app provides excellent driving simulator letting you drive and follow road signs. Follow the signals, don’t take wrong turns, wear the seat belt and get to know everything required to be a pro driver. With more than 50 road signs, you have got plenty to learn. There are over 100 levels like grand tests and night driving. Oh, the game also offers 50 different cars to choose from.
Sponsored Links Price: Free #3. Are you bored of becoming the hero, who saves the world every time? Why not try the dark side of human instinct? The game lets you infect the world, instead of saving. Invent new viruses and spread across the globe. Remember, you are all alone against the world, may the best man win. Contaminate the planet with 12 different diseases, by mastering each to extreme levels.
Stunning retina graphics, hyper-realistic world, 50+ countries to infect and local language support make this game one of the best simulation games. Receives regular updates, keeping in mind the demands from players. Do not miss this one; download it now.
Sponsored Links Well, follow all the traffic rules carefully to ensure you aren’t labeled a careless driver. So, touch the maximum speed and explore the open world environment. Price: Free #5. X-Plane 10 Flight Simulator Dream to be a pilot?
X-Plane can be the excellent pick for your catalog. The biggest flashpoint of the game is the flight model that is used in our FAA-certified desktop simulator, which is primed to take your love for flying high to the next level. The high-quality aircraft lashed with multiple liveries, and interactive cockpits make the game extremely thrilling. Packed in with a lot of compelling combat missions, you will enjoy playing it for long. There are also emergency scenarios to help you hone your skill. Even better, the app provides tutorials, teaching the basics of takeoffs & landings, traffic patterns to ensure you are well versed in all the basic things.
Price: Free #6. True Skates True Skates, as the name suggests, is a skate simulation game. I loved to skate all the time in childhood until the day I broke my elbow! If you have a similar story like mine, try True Skate on your iPhone.
The awesome touch-based physics make this game more entertaining. Show off your skills in Skate Park, make a 360 spin or grind over the railings, jump through the stairs or make a nightmare flip, and all this can be done in slow motion as well, to get a glamorous feel. Yes, you do have the option to unlock levels with points you earn by performing tricks. True Skate allows you to only a single skate park for free, and you need to make an in-app purchase for additional content. Price: $1.99 #7. Extreme Off-Road Truck Driver Have you ever thought of giving a try to reckless truck driving? It’s time to live up to that experience in reel life!
The app offers you a great chance to drive your truck through some of the most dangerous roads of the world hill range. The experience of the driving truck on rugged terrain will not only offer more fun but also make you a wiser driver. There are 20 exciting missions, which can bring the best out of you. Moreover, you can choose to drive the 4×4 jeep, passenger bus and even transporter trucks on bumpy roads. Price: Free #8. Bridge Constructor Have you ever thought of building huge bridges and excelling in it? If yes, Bridge Constructor is designed for you.
Well, this game does not require any kind of engineering skills to build bridges. At the starting of the game, you will be on Tiltin islands, surrounded by other three islands at a different altitude. You will need to think out-of-the-box to make bridges to meet the height difference. You’ll get 40 different mind-boggling levels to pass through. Every bridge can be constructed with varying materials of construction; the only hurdle is your budget. So, choose wisely to fit your pockets well.
Price: $1.99 #9. Falcon Simulator How about living a life of a falcon? Shoot up high in the sky and rule the winds. Hunt down your prey and feed your fleet. Watch out for the deadly enemies like hawks, vultures, and foxes.
The game consists of 25 unique species of deer, wolves, crocodile, skunk, snake, fish, vulture, buffalo, fox, crow, bears, squirrel, raccoon, mice and more. Breed babies, raise them, feed them, protect them and expand your horizon with a flock of falcons. You can also recruit other Falcons by offering them your prey.
There are two new exciting mission types, Earn Your Wings and Scavenger to keep you engrossed for more. Price: $0.99 #10.
Motorsport Manager If you are charmed by speed or a big fan of F1 racing, you are going to like Motorsport Manager a lot. Explore the world of F1 high-speed racing with Motorsport Manager.
Sadly, you won’t be racing at all. Instead, you’ll be managing your team in all ways. Hire drivers, upgrade your cars, plan strategies with your driver, and prioritize your pit planning to win the race. You can either watch the race in real-time or you can occupy yourself in strategy mode to plan according to changes in weather or crashes. This really is a great simulation game, with the five-star reviews. Price: Free That’s all for now!
What’s your favorite? Ditto, you have picked out some of the games to play, haven’t you? Do let us know their names and also tell us the names of other simulator games, which you have always found exciting. You might want to refer these posts as well:. Enjoyed this article?
And stay connected with us via, and to read more such top iPhone/iPad app lists.