我得到这个错误,这阻止我上传到AppStore
ERROR ITMS-90725: "SDK Version Issue.
This app was built with the iOS 12.0 SDK.
All iOS apps submitted to the App Store must be built with the iOS 12.1 SDK or later, included in Xcode 10.1 or later."
输出xcodebuild -sdk -version:
iPhoneOS12.1.sdk - iOS 12.1 (iphoneos12.1)
SDKVersion: 12.1
Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk
PlatformVersion: 12.1
PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
BuildID: ...
ProductBuildVersion: 16B91
ProductCopyright: 1983-2018 Apple Inc.
ProductName: iPhone OS
ProductVersion: 12.1
iPhoneSimulator12.1.sdk - Simulator - iOS 12.1 (iphonesimulator12.1)
SDKVersion: 12.1
Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk
PlatformVersion: 12.1
PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform
BuildID: ...
ProductBuildVersion: 16B91
ProductCopyright: 1983-2018 Apple Inc.
ProductName: iPhone OS
ProductVersion: 12.1
MacOSX10.14.sdk - macOS 10.14 (macosx10.14)
SDKVersion: 10.14
Path: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
PlatformVersion: 1.1
PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform
ProductBuildVersion: 18B71
ProductCopyright: 1983-2018 Apple Inc.
ProductName: Mac OS X
ProductUserVisibleVersion: 10.14.1
ProductVersion: 10.14.1
AppleTVOS12.1.sdk - tvOS 12.1 (appletvos12.1)
SDKVersion: 12.1
Path: /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.1.sdk
PlatformVersion: 12.1
PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform
BuildID: ...
ProductBuildVersion: 16J602
ProductCopyright: 1983-2018 Apple Inc.
ProductName: Apple TVOS
ProductVersion: 12.1
AppleTVSimulator12.1.sdk - Simulator - tvOS 12.1 (appletvsimulator12.1)
SDKVersion: 12.1
Path: /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator12.1.sdk
PlatformVersion: 12.1
PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform
BuildID: ...
ProductBuildVersion: 16J602
ProductCopyright: 1983-2018 Apple Inc.
ProductName: Apple TVOS
ProductVersion: 12.1
WatchOS5.1.sdk - watchOS 5.1 (watchos5.1)
SDKVersion: 5.1
Path: /Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS5.1.sdk
PlatformVersion: 5.1
PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform
BuildID: ...
ProductBuildVersion: 16R591
ProductCopyright: 1983-2018 Apple Inc.
ProductName: Watch OS
ProductVersion: 5.1
WatchSimulator5.1.sdk - Simulator - watchOS 5.1 (watchsimulator5.1)
SDKVersion: 5.1
Path: /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator5.1.sdk
PlatformVersion: 5.1
PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform
BuildID: ...
ProductBuildVersion: 16R591
ProductCopyright: 1983-2018 Apple Inc.
ProductName: Watch OS
ProductVersion: 5.1
Xcode 10.1
Build version 10B61
有任何想法吗?我再也无法上传到AppStore了,现在已经有一周寻找解决方案,我找不到解决方案。
显然,在Xcode 10.2中,这个问题并不存在。尝试了很多解决方案后,为我做的就是安装10.2版本的Xcode。我希望这个答案可以帮助别人节省一些时间。
假设您安装了iOS 12.1 SDK:
打开XCode首选项,然后转到“位置”选项卡。
在该屏幕中选择适当的“命令行工具”版本。这应该有所帮助。
还有其他警告或错误吗? The iOS submission guidelines指出了比iOS 12.1 SDK更多的要求,如果你有一个手表应用需要watchOS 5。确保那里没有问题:
从2019年3月27日开始,提交到App Store的所有iOS应用都需要使用iOS 12.1 SDK或更高版本构建,并支持iPhone XS Max或12.9英寸iPad Pro(第3代)的全屏设计。所有watchOS应用程序都需要支持watchOS 5和Apple Watch Series 4。
这个错误消息不太可能是罪魁祸首,但为了更好地衡量,请确保您的应用程序包含64位二进制文件。如果您支持运行iOS 10或更早版本的设备,则还可以包含32位二进制文件,但必须提供64位二进制文件。
如果Xcode仍无法上传,请尝试使用Application Loader上传。在Xcode中,选择File>Open Developer Tool>Application Loader
。
如果仍然以同样的方式失败,我将卸载并重新安装Xcode;它不会伤害。您可能想要查找如何真正卸载所有Xcode位然后进行全新安装。
我听说过这个问题在苹果后端修复自己的问题,但如果它在一周之后仍然发生,那似乎不太可能。
如果一切都失败了,请登录您的开发者帐户,转到the apple developer forums并寻求帮助。那里的Apple工程师可能能够帮助您做好准备。
我在Xcode 10.1中遇到了同样的问题(由于其他原因我还无法更新到Xcode 10.2)。我的项目中的所有内容都指向SDK 12.1,我在尝试上传到App Store时仍然收到错误消息。
我最终解决了这个问题,删除了“/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs”中的“iPhoneOS12.0.sdk”文件夹,并留下了“iPhoneOS12.1.sdk”的文件夹。 ”。没有必要重新安装Xcode。