【问题标题】: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错误:此应用是使用 iOS 12.0 SDK 构建的。从 2019 年 3 月开始,所有提交到 App Store 的 iOS 应用程序都必须使用 iOS 12.1 SDK 构建
【发布时间】:2019-08-23 04:00:02
【问题描述】:

我收到阻止我上传到 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
  • 我使用 xcode 10.1 (10B61)
  • 我卸载并重新安装了 Xcode

有什么想法吗?我不能再上传到 AppStore 了,现在已经一个星期了,我一直在寻找解决方案,但我找不到解决方案。

【问题讨论】:

  • 更新到 Xcode 10.2?
  • 我的mac不支持,但是我的一个朋友有10.2,他也有同样的问题
  • 嗯,这可能是苹果的问题。
  • 真的是错误吗?
  • 哇!你能给出这个答案并接受吗?这一定对其他人有用。

标签: ios xcode app-store app-store-connect


【解决方案1】:

我在使用 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。

【讨论】:

  • 就我而言,该路径中只有一个文件夹,它是 iPhoneOS12.1.sdk
【解决方案2】:

显然,在 Xcode 10.2 中这个问题不存在。在尝试了许多解决方案之后,为我做的一个是安装 10.2 版本的 Xcode。我希望这个答案可以帮助某人节省一些时间。

【讨论】:

    【解决方案3】:

    还有其他警告或错误吗? 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 (3rd 一代)。所有 watchOS 应用都需要支持 watchOS 5 和 Apple 观看系列 4。

    该错误消息不太可能是罪魁祸首,但为了更好地衡量,请确保您的应用包含 64 位二进制文​​件。如果您支持运行 iOS 10 或更早版本的设备,您也可以包含 32 位二进制文​​件,但您必须提供 64 位二进制文​​件。

    如果 Xcode 仍然无法上传,请尝试使用 Application Loader 上传。在 Xcode 中,选择File>Open Developer Tool>Application Loader

    如果仍然失败以同样的方式,我会卸载并重新安装 Xcode;它不会受伤。您可能想了解如何真正卸载所有 Xcode 位,然后进行全新安装。

    我听说这个问题会在 Apple 后端自行修复,但如果一周后仍然发生,那似乎不太可能。

    如果一切都失败了,请登录您的开发者帐户,前往the apple developer forums 寻求帮助。那里的 Apple 工程师可能会帮助您解决问题。

    【讨论】:

    • 只有提到的错误,没有其他警告。我尝试使用应用程序加载器上传您的建议,它给了我同样的错误。现在我只能尝试卸载并重新安装 Xcode。
    • 嘿,另一个想法,如果你还没有这样做的话。只是为了确保所选命令行工具路径没有问题,请在终端中执行此操作。如果您的 Xcode 不称为 Xcode,请更改路径。 sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
    • 我卸载并重新安装了Xcode,并使用您的命令检查了路径,上传时仍然出现同样的错误
    • 我编辑了添加xcodebuild输出的问题,请看一下是否有异常
    • 这符合我这里的。我最近没有尝试提交,但我没有发现您的安装有任何问题。接下来我会访问 Apple 开发者论坛。如果您发现任何问题,请在此处报告给其他人。
    【解决方案4】:

    假设您已安装 iOS 12.1 SDK:

    打开 XCode 首选项,然后转到“位置”选项卡。

    在该屏幕中选择适当的“命令行工具”版本。这应该会有所帮助。

    【讨论】:

    • 那里只有一个版本,它是 xcode 10B61
    猜你喜欢
    • 2020-06-29
    • 1970-01-01
    • 2021-05-22
    • 1970-01-01
    • 1970-01-01
    • 2013-09-22
    • 1970-01-01
    • 2022-07-15
    • 1970-01-01
    相关资源
    最近更新 更多