Update ios deployment target

From forcedotcom/SalesforceMobileSDK-CordovaPlugin · View interactive version

Update ios deployment target is an AI agent skill from the GitHub repository forcedotcom/SalesforceMobileSDK-CordovaPlugin. This skill updates the minimum iOS deployment target for the Salesforce Mobile SDK Cordova Plugin.

How to use this skill

Skill file

Update iOS Minimum Deployment Target

This skill updates the minimum iOS deployment target for the Salesforce Mobile SDK Cordova Plugin.

When to Use

What This Skill Does

Updates the iOS deployment target in the Cordova Plugin distribution package:

  1. plugin.xml - Updates the deployment-target preference for iOS platform
  2. README.md - Updates minimum iOS version requirements in documentation

Important Context: This repository is a distribution package that aggregates code from multiple source repositories (Shared, iOS-Hybrid, Android). The iOS native code and build configurations are maintained in the iOS-Hybrid repository. Therefore, this skill only updates the Cordova-specific configuration files, not the underlying iOS code.

Prerequisites

CRITICAL: Update Source Repositories First

The following repositories MUST be updated with the new deployment target BEFORE updating the Cordova plugin:

  1. SalesforceMobileSDK-iOS - Core iOS SDK libraries
  2. SalesforceMobileSDK-iOS-Hybrid - iOS hybrid bridge layer

Why: The Cordova plugin references iOS-Hybrid libraries via CocoaPods. The iOS-Hybrid repo contains podspecs and build configurations that define the actual deployment target. The plugin.xml preference in this repo tells Cordova what deployment target to configure, but it must match what the underlying iOS libraries support.

Usage

When invoked, ask the user for:

Step-by-Step Process

1. Update plugin.xml

In plugin.xml, locate the iOS platform section and update the deployment-target preference:

<platform name="ios">
  <config-file target="config.xml" parent="/*">
    <preference name="deployment-target" value="X.0" />

Change the value from the old version to the new version (e.g., "17.0" → "18.0").

Location: Line ~42 in plugin.xml

2. Update README.md

In README.md, update all references to the minimum iOS version:

Section: Platform Requirements table (~line 210-212):

| Platform | Minimum Version | Cordova Version |
|----------|----------------|-----------------|
| **iOS** | X.0 | cordova-ios 7.1.1 |

Section: Prerequisites (~line 221):

- iOS X.0+ device or simulator

Post-Update Tasks

  1. Documentation Review: Ensure all version references are updated

Important Notes

Historical References

Checklist

Before marking complete:

Related Documentation

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.