Skip to main content

iOS Simulator

The iOS Simulator lets you test your app on a virtual iPhone or iPad on your Mac. It’s your primary tool for seeing your app in action.

What is the Simulator?

The Simulator is a virtual iOS device running on your Mac. It:
  • Runs your actual compiled app
  • Simulates iPhone/iPad hardware
  • Supports most iOS features
  • Updates instantly as you build

How It Works with Nativeline

  1. You make changes via chat
  2. Nativeline rebuilds your app
  3. App automatically launches in Simulator
  4. You test and iterate
The Simulator appears alongside your Nativeline workspace, giving you instant feedback.

Interacting with the Simulator

Basic Interactions

ActionHow to Do It
TapClick
ScrollClick and drag, or two-finger swipe
SwipeClick and drag
Long pressClick and hold
Pinch/zoomOption + drag
RotateCmd+Left/Right Arrow
ShakeDevice → Shake

Text Input

Click a text field and type with your keyboard. The Simulator uses your Mac’s keyboard.

Home Screen

  • Home button: Cmd+Shift+H
  • Home (iPhone X+): Drag up from bottom

Changing Devices

You can test on different iPhone/iPad models:

In Nativeline

Look for device selection in the toolbar or settings.

In Simulator

  1. File → Open Simulator
  2. Choose a device type

Why Different Devices?

DeviceBest For Testing
iPhone SESmall screens, compact layouts
iPhone 15Standard size, typical user
iPhone 15 Pro MaxLarge screens, edge cases
iPadTablet layouts

Simulator Features

Location Simulation

Test location features without moving:
  1. Features → Location
  2. Choose: City Bicycle Ride, Freeway Drive, Custom Location
Or set a specific location:
  1. Features → Location → Custom Location
  2. Enter latitude/longitude

Screenshots

Save screenshots of your app:
  • Cmd+S while Simulator is focused
  • Saved to Desktop by default

Screen Recording

Record your app in action:
  1. File → Record Screen
  2. Interact with your app
  3. Stop recording
  4. Video saved to Desktop

Dark Mode Toggle

Quick appearance switch:
  • Features → Toggle Appearance
  • Or: Settings app → Display & Brightness

Keyboard Toggle

Show/hide the software keyboard:
  • Cmd+K
  • Or: I/O → Keyboard → Toggle Software Keyboard

First Launch

The first time the Simulator boots:
  • Takes 30-60 seconds
  • Downloads iOS components
  • Creates virtual device
Subsequent launches are much faster (~5-10 seconds).

What the Simulator Can’t Do

Some features require a real device:
Not AvailableAlternative
Actual cameraUse photo library
Real GPSSimulated locations
Face ID sensorSimulated Face ID (Features menu)
Actual push notificationsLocal notifications work
Apple PaySimulated in sandbox
Real performanceTest on device for speed
For these features, deploy to TestFlight and test on a real iPhone.

Performance Considerations

Simulator vs Real Device

The Simulator is:
  • Faster for some things (uses Mac’s powerful CPU)
  • Slower for others (graphics aren’t optimized)
  • Not accurate for performance testing
Always test on a real device before publishing.

Improving Simulator Performance

If the Simulator is slow:
  1. Use a simpler device (iPhone SE instead of Pro Max)
  2. Close other Simulators
  3. Close other heavy apps
  4. Restart the Simulator

Common Simulator Tasks

Device → Erase All Content and SettingsThis clears:
  • All app data
  • All permissions
  • All settings
Useful for testing first-launch experience.
Drag image files from Finder onto the Simulator window. They’re added to the Photos app.
Use Network Link Conditioner (part of Additional Tools for Xcode):
  1. System Preferences → Network Link Conditioner
  2. Choose a profile (3G, Edge, etc.)
  3. Turn on
Or test network handling in code.
Xcode → Settings → Platforms → Download other iOS versionsThen create Simulators with those versions.

Troubleshooting

  • Check Xcode is installed (Nativeline installs automatically)
  • Restart Nativeline
  • Open Xcode → Window → Devices and Simulators to check Simulator health
  • Try: sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService
  • Check build succeeded (look for errors in chat)
  • Simulator might be behind other windows
  • Check other Spaces/Desktops
  • The app might need to be manually launched from Simulator home screen
  • Close other applications
  • Use a simpler device
  • Restart Simulator (Device → Restart)
  • Restart your Mac
Press Cmd+K to toggle software keyboard, or: I/O → Keyboard → Toggle Software Keyboard
  • Click the text field first
  • Make sure hardware keyboard is enabled: I/O → Keyboard → Connect Hardware Keyboard

Simulator Shortcuts

ShortcutAction
Cmd+Shift+HHome
Cmd+Left/RightRotate
Cmd+KToggle keyboard
Cmd+SScreenshot
Cmd+RReboot
Cmd+Shift+AToggle slow animations