Skip to main content

Install Salesforce Mobile App Simulator for iOS

Learning Objectives

In this project, you’ll learn how to:

  • Install and configure the Salesforce Mobile App Simulator for iOS (only for macOS).
  • Install and configure the Salesforce Mobile App Emulator for Android.
  • Customize and view a Lightning web component on mobile.
  • Discover other mobile development tools.
Note

Prerequisites

Before you begin, make sure you’ve completed the following prerequisites.  

Required

  • Download the bikeCard component. You need this to complete Step 3.
  • Make sure your org is set up for local development. If you need help with setting up your org for local development, you can use this guide for help.

Develop Mobile-Friendly Lightning Web Components

With more Salesforce users running their businesses from their phones, you can reach a wider audience by making your Lightning web components mobile-friendly. Of course, there’s a chance that a component you develop is already mobile-friendly, but it’s worth verifying any way because it’s not that much extra effort. That way, you know with certainty that your users won’t encounter easily avoidable issues.

Fortunately, you can view, test, and even debug your Lightning web components against iOS devices or Android devices straight from your desktop using mobile simulators. Let’s go over how to add these tools to your development environment and use them while developing.

Get Your Trailhead Playground Username and Password

Start by opening your Trailhead Playground by scrolling to the bottom of this page and clicking Launch. If you see a tab in your org labeled Get Your Login Credentials, great! Follow the steps below. 

If not, from the App Launcher, find and open Playground Starter and follow the steps. If you don’t see the Playground Starter app, check out Find the Username and Password for Your Trailhead Playground on Salesforce Help.

  1. Click the Get Your Login Credentials tab and take note of your username.
  2. Click Reset My Password. This sends an email to the address associated with your username.
  3. Click the link in the email.
  4. Enter a new password, confirm it, and click Change Password.

Configure Your iOS Mobile Simulator

Note

You can only use the iOS Mobile Simulator on macOS. If you don’t have a macOS machine, scroll down and click Verify Step to skip to the next step in the project to install the Android emulator.

Xcode is the integrated developer environment (IDE) for iOS mobile applications and contains an iOS simulator you can use to test your Lightning web components. After it’s configured, you can run the iOS simulator straight from your Visual Studio Code environment, which you learn about later.

  1. Download and install the latest version of Xcode. If you already have Xcode installed, there’s no need to reinstall it.
  2. Launch Xcode.
  3. In the menu bar, select Xcode | Open Developer Tool | Simulator. A new program called Simulator opens, displaying a mobile screen.
  4. Go to File | Open Simulator to choose your preferred device.
  5. You can close Xcode, but keep the Simulator window open to install the Salesforce app in the next section.

Install the Salesforce Mobile App Simulator for iOS

A newly configured iOS simulator includes only Apple’s default apps, so you must install the Salesforce Mobile app to test your Lightning web components. If you’re testing against multiple iOS devices, you must install the app for each device simulator.

  1. Download the iOS simulator build of the Salesforce Mobile app from Salesforce Mobile Tools.
  2. If you encounter a redirect page, click Continue.
  3. Double-click the downloaded zip file to extract the app file. The app is named Chatter.app—long story, for another time.
  4. Drag the extracted app file into the Simulator window.
  5. In Simulator, click the newly installed Salesforce app to open it. If you don’t see the app on the first page, it probably installed on a different app page. You can swipe the page with your mouse to see additional pages to find the app.
  6. Click I Accept to agree to the end-user license agreement.
  7. Enter your Salesforce username and password for your development org, and click Log In.
  8. Enter the verification code that was sent to you and click Verify.
  9. Click Allow to allow the app to access your Salesforce information. After you’ve logged in, you’ll be greeted with a Welcome to the Mobile App popup.
    iOS Salesforce app welcome screen.
  10. Click Get Started to start using the app.

That’s it! Now you can use the Salesforce mobile app for iOS on your computer. Later, you also learn how to open the Simulator directly from Visual Studio Code.

We won’t check any of your setup. Click Verify Step to go to the next step in the project.

Resources

Salesforce 도움말에서 Trailhead 피드백을 공유하세요.

Trailhead에 관한 여러분의 의견에 귀 기울이겠습니다. 이제 Salesforce 도움말 사이트에서 언제든지 새로운 피드백 양식을 작성할 수 있습니다.

자세히 알아보기 의견 공유하기