Fix: Minimum OS Version Mismatch in Xcode App Store Connect Upload

Fix: Minimum OS Version Mismatch in Xcode App Store Connect Upload
Quick answer: The Minimum OS Version Mismatch error occurs when the deployment target in your Xcode project settings doesn’t match the binary’s LC_VERSION_MIN_IPHONEOS. Set the iOS Deployment Target in both Project and Target build settings, verify in project.pbxproj or .xcconfig, then clean, restart Xcode, and re-archive before uploading.

Why this happens

When you upload an app to App Store Connect, Apple validates that the MinimumOSVersion key in your Info.plist matches the LC_VERSION_MIN_IPHONEOS load command embedded in the compiled binary. If you only change the deployment target in the Target’s Build Settings—or worse, edit Info.plist manually—the project-level setting or an .xcconfig file can still override it, causing the binary to be built for an older iOS version (like 6.0) while the plist claims a newer one (like 8.0).

This mismatch often appears in projects that use workspaces (CocoaPods, React Native, Flutter) or have multiple targets, because each target inherits the project’s deployment target unless explicitly overridden. A stale Xcode build cache can also serve an old binary after you change the setting.

How to fix it

1. Set Deployment Target at Project and Target Levels

Open your Xcode project (or workspace) and select the Project node in the navigator. In the Build Settings tab, search for iOS Deployment Target (IPHONEOS_DEPLOYMENT_TARGET). Set it to your desired minimum version (e.g., 15.0).

Then select each Target and repeat the same step in the Target’s Build Settings. Ensure All configurations (Debug, Release, etc.) show the same value. Also check Target → General → Deployment Info and confirm the iOS version dropdown matches.

2. Check .xcconfig and project.pbxproj for Overrides

If your project uses .xcconfig files, open each one and search for IPHONEOS_DEPLOYMENT_TARGET. Update or remove any line that sets a different version.

Even without .xcconfig, the project file can hold per-configuration values. In Finder, right-click your .xcodeproj → Show Package Contents, open project.pbxproj in a text editor, and search for IPHONEOS_DEPLOYMENT_TARGET. Every occurrence should read your intended version (e.g., IPHONEOS_DEPLOYMENT_TARGET = 15.0;).

3. Verify in Archived IPA Before Upload

  1. Clean build folder: Product → Clean Build Folder (⇧⌘K).
  2. Restart Xcode completely to clear any cached settings.
  3. Archive: Product → Archive.
  4. In the Organizer, click Distribute App → Development (or App Store Connect for a test upload) and export the .ipa to a known folder.
  5. Rename the .ipa to .zip, expand it, and open Payload/YourApp.app/Info.plist.
  6. Confirm MinimumOSVersion matches your target (e.g., <string>15.0</string>).

If the value is still wrong, repeat the search in step 2—there is almost always a stray setting in a config file or a second target (like a watchOS or extension target) that wasn’t updated.

How to prevent it

  • Always set the deployment target at the Project level first, then verify each Target inherits it.
  • Keep .xcconfig files in sync; treat IPHONEOS_DEPLOYMENT_TARGET as a single source of truth.
  • Add a Run Script build phase that prints echo "Deployment target: $IPHONEOS_DEPLOYMENT_TARGET" so CI logs show the effective value.
  • Validate the IPA locally (as in step 3) before every App Store Connect upload.

FAQ

Why does editing Info.plist directly cause an invalid binary error?

The MinimumOSVersion in Info.plist is only metadata; the binary’s Mach-O header (LC_VERSION_MIN_IPHONEOS) is written by the linker based on the IPHONEOS_DEPLOYMENT_TARGET build setting. Changing the plist without rebuilding the binary creates the mismatch Apple rejects.

Do I need to update deployment target for app extensions and watchOS targets too?

Yes. Every embedded target (App Extension, WatchKit App, Widget Extension) has its own IPHONEOS_DEPLOYMENT_TARGET. All must be at or above the main app’s minimum version, otherwise the archive will contain a binary with a lower load command.

Can I support older iOS versions for existing users while raising the minimum for new builds?

No. The deployment target is a single value per binary. To drop support for an older iOS version, you must raise the minimum for the next App Store release; users on older OS versions will simply stop receiving updates.

Sources & credits

Parts of this guide are adapted from content licensed under CC BY-SA 4.0; this article is shared under the same license.