Resolve common installation, native app, and LWC issues with the Salesforce Mobile Development plugin.
Installation Issues
The plugin isn’t in the marketplace: Confirm that you registered the marketplace with /plugin marketplace add forcedotcom/sf-skills, and that you install the plugin with the marketplace name, mobile-development@salesforce. If you registered the marketplace earlier, update it from the /plugin menu to get the latest plugin list.
The skills don’t appear after installation: Run /plugin to confirm that mobile-development is installed. If it’s installed, restart Claude Code. In other environments, confirm that npx skills add completed without errors, and then restart your AI assistant.
The agent doesn’t load a skill for your prompt: Make your prompt more specific. Name the platform, such as iOS or Android, the component, or the capability, and use terms from the skill’s trigger phrases. In Claude Code, invoke the skill directly, for example, /mobile-development:mobile-platform-offline-validate.
Native App Issues
The agent asks to install a skill that you didn’t request: The mobile-apps-create skill hands off work to a platform skill, such as ios-mobile-sdk, from the Mobile SDK or Agentforce SDK repository. Approve the install to continue. If you decline, the workflow stops because the platform skill owns the SDK setup steps. See Mobile Development Plugin Dependencies.
The agent asks which SDK or platform to use: Your prompt matches more than one SDK family or platform. Say whether you’re building a data-driven app, a chat-first agent app, or both, and whether you’re targeting iOS, Android, or both.
Generated Agentforce code doesn’t compile: Upgrade to version 0.2.1 or later of the plugin. In earlier versions, mobile-apps-create sometimes wrote the Agentforce integration by hand instead of loading the Agentforce SDK skill for your platform.
An iOS build fails with “file not found” errors: If you add files to the generated project manually, also add them to the .xcodeproj file.
The login screen doesn’t appear when the app launches: On iOS, confirm that bootconfig.plist, which contains the connected app’s consumer key and callback URI, is in the target’s Copy Bundle Resources build phase, and that Info.plist sets SFDCOAuthLoginHost. On Android, confirm that AndroidManifest.xml registers MainApplication and that initNative() runs in onCreate().
Login completes, but the iOS app doesn’t advance or loses the session on relaunch: Mobile SDK can’t store OAuth tokens because the keychain entitlement is missing or stripped. Confirm that the app’s entitlements file includes keychain-access-groups, and don’t build with CODE_SIGNING_ALLOWED=NO. For simulator builds, use ad-hoc signing with CODE_SIGN_IDENTITY=-.
For more login, build, and sync issues, see the troubleshooting references for the ios-mobile-sdk and android-mobile-sdk skills.
LWC Issues
isAvailable() returns false on a real device: Not every capability is supported in every Salesforce mobile app. Check the Mobile Capabilities Compatibility Summary for the app that runs your component. If the app supports the capability, an org-level setting can turn off the service. Fix the org configuration, not the code.
TypeScript can’t find the lightning/mobileCapabilities import: The module is declared globally inside Salesforce mobile apps. In your local project, install the @salesforce/lightning-types package with npm install @salesforce/lightning-types. Then import the package once from a declaration file, such as types/salesforce.d.ts, and include that file in your tsconfig.json.
Sample code uses deprecated barcode methods: The deprecated beginCapture(), resumeCapture(), and endCapture() methods still work, but new code uses scan() and dismiss(). Ask the skill to refactor the code.
The analyzer reports bundleAnalyzer errors: Keep the recommended configuration, which enables the bundleAnalyzer processor, and keep the component’s HTML templates next to its JavaScript file.
The review reports no findings for a component that you expect to fail: Confirm that the recommended ruleset is applied, not only the bundleAnalyzer processor with no rules. Some rules also require the HTML templates to be present alongside the JavaScript file.
More Information
Generated code ownership
The code that the skills generate is yours. The skills generate standard Swift, Kotlin, and JavaScript source files that you can read, refactor, and commit to your own repository.