Xcode SDK版本问题

问题描述 投票:0回答:3

我通过最新版本的Xcode(版本10.1(10B61))分发应用程序时遇到了一些问题。每次我尝试通过组织者将其上传到App Store时,我在上传后都会收到此错误:

WARNING ITMS-90725: "SDK Version Issue. 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 or later, included in Xcode 10.1 or later."

此问题的先前答案说,这只是一个警告,我仍然可以上传我的应用程序,但它现在是三月,我仍然得到错误甚至10.1。 iTunesConnect不允许我选择这些版本,我收到有关验证失败的电子邮件。

更多详情:

-The app is an iMessage extension, and uses exactly 1 framework from Carthage, which is up to date with the latest framework version and Carthage version.
-My project and Message extension targets Swift Language Version build setting is Swift 4.2.
-My deployment target is iOS 11.0, but the issue persists after selecting iOS 12.1.
-The app compiles and runs fine on my physical device running iOS 12.1.
-The issue persists after a build folder clean.
-The issue persists after reinstalling Xcode.

如果有人对如何验证我的应用程序是否使用最新的SDK进行编译有任何建议,请告诉我。

swift xcode xcode10 carthage imessage-extension
3个回答
5
投票

应用程序是否在给定的iOS版本上运行,与您真正使用的SDK无关。用于构建的最终SDK版本可在应用程序的Info.plist中找到。

  1. 存档后,在Finder中显示xcarchive。
  2. 右键单击,显示包内容。
  3. 打开产品/应用程序/ YourApp.app
  4. 右键单击,显示包内容。
  5. 将Info.plist复制到可以在其上运行终端命令的位置
  6. /usr/libexec/PlistBuddy -c "print :DTSDKBuild" Info.plist

您可能希望它为SDK 12.1显示“16B91”。如果它是其他东西(SDK 12.0将是“16A366”),这里有一些想法:

  • 检查迦太基的依赖性。您是在本地构建它还是下载预构建的二进制文件?如果有疑问,强迫当地建筑与--no-use-binaries。删除整个Carthage文件夹(Checkouts和Build)并从头开始。
  • rm -rf ~/Library/Developer/Xcode/DerivedData而不仅仅是“build folder clean”
  • 验证MacOS系统报告部分软件/开发人员,了解MacOS认为您拥有的实际SDK版本
  • xcode-select -p验证您确实使用了您想要的Xcode实例

如果所有看起来都正确,请填写Technical Support Incident。报告您已上传的确切拒绝版本。这应该加快支持反应。


2
投票

我填写了一份关于Apple的错误报告,因为我遇到了完全相同的问题,并且上述解决方案均无效。他们对后端做了改变,现在一切都恢复正常的工作状态。

如果你有一段时间没试过,再试一次,我打赌这次它会起作用。


1
投票

我遇到了同样的问题。我的应用程序是在Xcode 10.1中编译的,但我仍然收到SDK警告。我能够通过执行以下操作来解决它。我不确定是否所有这些步骤都是必要的。我没有尝试在步骤之间进行验证。

  1. 我将macOS升级到Mojave(10.14.3)。我一直在运行High Sierra。
  2. 从应用程序文件夹中删除Xcode
  3. 从应用商店重新安装Xcode
  4. 打开我的项目并运行Project-> Clean Build文件夹
  5. 存档和上传,不再有警告
© www.soinside.com 2019 - 2024. All rights reserved.