ERROR : This app was built with the iOS 12.0 SDK. Starting March 2019, all iOS apps submitted to the App Store must be built with the iOS 12.1 SDK
ERROR : This app was built with the iOS 12.0 SDK. Starting March 2019, all iOS apps submitted to the App Store must be built with the iOS 12.1 SDK
我收到此错误,阻止我上传到 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."
- 我的 mac
中没有两个 xcode 版本
- 我检查了 xcodebuild -sdk -version 并且我有 12.1,我使用 "sudo xcode-select -s /Applications/Xcode.app/Contents/Developer"
检查了命令行工具路径
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
- 我在构建设置中将基础 sdk 设置为 iOS
- 我用xcode10.1 (10B61)
- 我卸载并重新安装了Xcode
有什么想法吗?无法上传到AppStore了,找了一个星期的解决方案,还是找不到解决方案。
假设您安装了 iOS 12.1 SDK:
打开 XCode 首选项,然后转到 "Locations" 选项卡。
Select 该屏幕中的适当 "Command Line Tools" 版本。这应该有所帮助。
还有其他警告或错误吗? The iOS submission guidelines 指出了比 iOS 12.1 SDK 更多的要求,例如如果您有手表应用程序则需要 watchOS 5。确保那里没有问题:
Starting March 27, 2019, all iOS apps submitted to the App Store will
need to be built with the iOS 12.1 SDK or later, and support the
all-screen design of iPhone XS Max or the 12.9-inch iPad Pro (3rd
Generation). All watchOS apps will need to support watchOS 5 and Apple
Watch Series 4.
不太可能是导致该错误消息的罪魁祸首,但为了更好地衡量,请确保您的应用包含 64 位二进制文件。如果您支持设备 运行 iOS 10 或更早版本,您也可以包含 32 位二进制文件,但您 必须 提供 64 位二进制文件。
如果 Xcode 仍然无法上传,请尝试使用 Application Loader 上传。在Xcode, select File>Open Developer Tool>Application Loader
.
如果仍然失败以同样的方式,我会卸载并重新安装Xcode;它不会伤害。您可能想查看如何 真正地 卸载所有 Xcode 位,然后进行全新安装。
我听说这个问题会在 Apple 后端自行解决,但如果一周后它仍然发生,那似乎不太可能。
如果一切都失败了,请登录您的开发者帐户,转到 the apple developer forums 并寻求帮助。那里的 Apple 工程师或许可以帮助您解决问题。
显然,在 Xcode 10.2 中不存在此问题。在尝试了多种解决方案之后,为我完成的解决方案是安装 Xcode 的 10.2 版本。我希望这个答案可以帮助某人节省一些时间。
我在使用 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.
我收到此错误,阻止我上传到 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."
- 我的 mac 中没有两个 xcode 版本
- 我检查了 xcodebuild -sdk -version 并且我有 12.1,我使用 "sudo xcode-select -s /Applications/Xcode.app/Contents/Developer" 检查了命令行工具路径
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
- 我在构建设置中将基础 sdk 设置为 iOS
- 我用xcode10.1 (10B61)
- 我卸载并重新安装了Xcode
有什么想法吗?无法上传到AppStore了,找了一个星期的解决方案,还是找不到解决方案。
假设您安装了 iOS 12.1 SDK:
打开 XCode 首选项,然后转到 "Locations" 选项卡。
Select 该屏幕中的适当 "Command Line Tools" 版本。这应该有所帮助。
还有其他警告或错误吗? The iOS submission guidelines 指出了比 iOS 12.1 SDK 更多的要求,例如如果您有手表应用程序则需要 watchOS 5。确保那里没有问题:
Starting March 27, 2019, all iOS apps submitted to the App Store will need to be built with the iOS 12.1 SDK or later, and support the all-screen design of iPhone XS Max or the 12.9-inch iPad Pro (3rd Generation). All watchOS apps will need to support watchOS 5 and Apple Watch Series 4.
不太可能是导致该错误消息的罪魁祸首,但为了更好地衡量,请确保您的应用包含 64 位二进制文件。如果您支持设备 运行 iOS 10 或更早版本,您也可以包含 32 位二进制文件,但您 必须 提供 64 位二进制文件。
如果 Xcode 仍然无法上传,请尝试使用 Application Loader 上传。在Xcode, select File>Open Developer Tool>Application Loader
.
如果仍然失败以同样的方式,我会卸载并重新安装Xcode;它不会伤害。您可能想查看如何 真正地 卸载所有 Xcode 位,然后进行全新安装。
我听说这个问题会在 Apple 后端自行解决,但如果一周后它仍然发生,那似乎不太可能。
如果一切都失败了,请登录您的开发者帐户,转到 the apple developer forums 并寻求帮助。那里的 Apple 工程师或许可以帮助您解决问题。
显然,在 Xcode 10.2 中不存在此问题。在尝试了多种解决方案之后,为我完成的解决方案是安装 Xcode 的 10.2 版本。我希望这个答案可以帮助某人节省一些时间。
我在使用 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.