The Salesforce Developers website will undergo maintenance on May 29, 2024 from 3:00 a.m. UTC to 10:00 a.m. UTC. The maintenance process may affect the availability of our documentation. Please plan accordingly.

Migrate All Apps from 11.1 to 12.0.1

Mobile SDK 12.0.1 migration is easiest if you use the Salesforce CLI plugin or the Mobile SDK npm scripts.

Before you begin upgrading, read about new 12.0.1 features in What’s New in Mobile SDK 12.0.1. Mobile SDK 12.0.1 requires no code changes.

Native iOS (Swift, Objective-C)

After you’ve recreated your app:

  • Migrate your app’s artifacts into the new template.
  • Review the list of APIs deprecated for future removal, and address any items that affect your codebase. See iOS Current Deprecations.
  • After a successful build, check compiler warnings for deprecations or other Mobile SDK issues you’ve missed.
  • Consider adopting new features. See What’s New in Mobile SDK 12.0.1.
Native Android (Java, Kotlin)

After you’ve recreated your app:

  • Migrate your app’s artifacts into the new template.
  • Review the list of APIs deprecated for future removal, and address any items that affect your codebase until your build succeeds. See Android Current Deprecations.
  • After a successful build, check the compiler warnings for deprecations or other Mobile SDK issues you’ve missed.
  • Consider adopting new features. See What’s New in Mobile SDK 12.0.1.
React Native

  • Recreate your app with the Salesforce CLI Mobile SDK plug-in or the forcereact npm script. For Saleforce CLI, follow the instructions at the command line by typing sfdx mobilesdk:reactnative:create help For forcereact, follow the instructions in “Updating Native and React Native Apps” at Updating Mobile SDK Apps (5.0 and Later).

After you’ve recreated your app:

Hybrid

  • Make sure that you’ve installed the supported versions of the mobile platforms you’re targeting. See the Set Up Your Mobile SDK Developer Tools Trailhead project.
  • Recreate your app with the Salesforce CLI Mobile SDK plug-in or the forcehybrid npm script. For Saleforce CLI, follow the instructions at the command line by typing sfdx mobilesdk:hybrid:create help For forcehybrid, follow the instructions in “Updating Hybrid Apps” at Updating Mobile SDK Apps (5.0 and Later).
  • After you’ve recreated your app: