提交App Store遇ITMS-90725错误:已使用Xcode13.2.1却提示基于iOS14.4 SDK构建
Hey there, let's troubleshoot this frustrating issue together—your setup should support building with iOS 15.2 SDK, so let's dig into the settings that might be stuck on iOS 14.4:
1. Verify Project-Level Build Settings
- Open your project in Xcode, select the top-level project file in the left navigator.
- Switch to the Build Settings tab, then search for
Base SDK. - Ensure the value is set to iOS 15.2 (or "Latest iOS"—but manually selecting 15.2 eliminates ambiguity).
- Double-check your
iOS Deployment Targethere too; this can be lower than 15, but the Base SDK must be 15+.
2. Check Target-Specific Settings (Critical!)
Don't overlook individual targets—this is a common pitfall:
- Select each target in your project (main app, extensions, widgets, etc.) one by one.
- Navigate to their Build Settings and search for
Base SDK. Confirm it's set to iOS 15.2 for every target. - Sometimes project-level changes don't propagate to all targets automatically.
3. Clear Build Caches Completely
Old cached build artifacts might be clinging to the iOS 14.4 SDK:
- Use
Cmd + Shift + Kto clean the project's build folder. - Follow that with
Cmd + Option + Shift + Kto delete all Derived Data for the project. - For a thorough clean, manually delete the Derived Data folder at
~/Library/Developer/Xcode/DerivedData(find your project's subfolder and remove it).
4. Refresh Third-Party Dependencies
If you use CocoaPods, Carthage, or other tools, dependencies might be compiled with the old SDK:
- For CocoaPods: Run
pod deintegratein your project directory, thenpod installto rebuild all dependencies with your current Xcode version. - Check the podspec files or build settings of any custom dependencies to ensure they don't hardcode an older Base SDK.
5. Validate the Built App's Metadata
After building, confirm the SDK version actually used:
- Right-click your
.appfile in the Xcode Products folder, select Show in Finder. - Right-click the
.appfile, choose Show Package Contents, then openInfo.plist. - Look for the
DTPlatformVersionkey—its value should be15.2. If it's still14.4, your build is still using the old SDK.
6. Confirm Xcode's SDK Installation
Make sure Xcode 13.2.1 has the iOS 15.2 SDK installed:
- Go to
Xcode > Preferences > Locationsand verify Command Line Tools is set to Xcode 13.2.1. - Navigate to
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/in Finder—you should see theiPhoneOS15.2.sdkfolder here.
Since your 2015 iMac running macOS Big Sur 11.6.4 fully supports Xcode 13.2.1, the system itself isn't the issue. Start with checking target-level Base SDK settings—this is the most frequent culprit!
内容的提问来源于stack exchange,提问作者Ray Yen

