“SDK版本问题。此应用程序是使用iOS 16.2 SDK构建的。所有iOS和iPadOS应用程序都必须使用iOS 17 SDK或更高版本构建”

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

使用 Gitlab CI 一段时间以来,存在一个永久性问题:

[17:39:27]: [33m[altool] 2024-05-14 17:39:27.338 *** 错误:资产验证失败 SDK 版本问题。该应用程序是使用 iOS 16.2 SDK 构建的。所有 iOS 和 iPadOS 应用程序都必须使用 iOS 17 SDK 或更高版本(包含在 Xcode 15 或更高版本中)构建,才能上传到 App Store Connect 或提交分发。 (ID:713999ac-ec13-4b2b-a933-52ec2d927b38)(90725)
[0米
[17:39:27]: [33m[altool] {
[0米
[17:39:27]: [33m[altool] NSLocalizedDescription = "资产验证失败";
[0米
[17:39:27]: [33m[altool] NSLocalizedFailureReason = "SDK 版本问题。此应用程序是使用 iOS 16.2 SDK 构建的。所有 iOS 和 iPadOS 应用程序都必须使用 iOS 17 SDK 或更高版本构建,包含在 Xcode 15 中或更高版本,以便上传到 App Store Connect 或提交分发(ID:713999ac-ec13-4b2b-a933-52ec2d927b38)”;
[0米
[17:39:27]:[33m[altool]“original_server_error”= {
[0米
[17:39:27]:[33m[altool]代码=“STATE_ERROR.VALIDATION_ERROR.90725”;
[0米
[17:39:27]:[33m[altool]详细信息=“SDK版本问题。此应用程序是使用iOS 16.2 SDK构建的。所有iOS和iPadOS应用程序都必须使用iOS 17 SDK或更高版本构建,包含在Xcode 15中或稍后,以便上传到 App Store Connect 或提交分发。”;
[0米
[17:39:27]: [33m[altool] id = "713999ac-ec13-4b2b-a933-52ec2d927b38";
[0米
[17:39:27]:[33m[altool]状态= 409;
[0米
[17:39:27]: [33m[altool] title = "资产验证失败";
[0米
[17:39:27]: [33m[altool] };
[0米
[17:39:27]:[33m[工具]}
[0米
[17:39:27]:上面的应用程序加载器输出 ^
[17:39:27]:[31mERROR:将重试第 1 部分。失败并出现错误:错误域=NSURLErrorDomain 代码=-1003“找不到具有指定主机名的服务器。” UserInfo={_kCFStreamErrorCodeKey=8, NSUnderlyingError=0x600002c58600 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "(null)" UserInfo={_kCFStreamErrorDomainKey=12, _kCFStreamErrorCodeKey=8, _NSURLErrorNWResolutionReportKey=使用缓存中的 udp 在 27 毫秒内解析了 0 个端点, NWPathKey=满意(满足路径),接口:en0, ipv4, dns}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalUploadTask ., _NSURLErrorRelatedURLSessionTaskErrorKey=(
[0米

我的机器上的所有内容都更新到最新版本:

  • os 14(索诺玛)
  • Xcode 15.3

Xcode 15 和 iOS 17SDK 是我的 Mac 上安装的唯一 sdk

应用程序是为ios设计的。我使用 Fastlane 上传所有内容。为什么说它是用 16.2 构建的?我该如何解决这个问题?我读了很多相关内容,尝试了所有方法,但仍然会产生相同的错误。

swift xcode continuous-integration gitlab-ci fastlane
2个回答
0
投票

同样的问题:

Starting the submit process
Downloading archive
Preparing artifact
Verifying archive
Creating ascApiJsonKey.json file with ASC credentials
Submitting iOS app to TestFlight...
Submitting the app with fastlane pilot
-------------------
--- Step: pilot ---
-------------------
Creating authorization token for App Store Connect API
Ready to upload new build to TestFlight (App: 1570124757)...
Going to upload updated app to App Store Connect
This might take a few minutes. Please don't interrupt the script.
[altool] 2024-05-15 08:11:38.459 *** Error: Asset validation failed SDK version issue. This app was built with the iOS 16.2 SDK. All iOS and iPadOS apps must be built with the iOS 17 SDK or later, included in Xcode 15 or later, in order to be uploaded to App Store Connect or submitted for distribution. (ID: d3398027-1191-44aa-ab20-f69f88cf79ae) (90725)

[altool]  {
[altool]     NSLocalizedDescription = "Asset validation failed";

[altool]     NSLocalizedFailureReason = "SDK version issue. This app was built with the iOS 16.2 SDK. All iOS and iPadOS apps must be built with the iOS 17 SDK or later, included in Xcode 15 or later, in order to be uploaded to App Store Connect or submitted for distribution. (ID: d3398027-1191-44aa-ab20-f69f88cf79ae)";

[altool]     NSUnderlyingError = "Error Domain=IrisAPI Code=-19241 \"Asset validation failed\" UserInfo={status=409, detail=SDK version issue. This app was built with the iOS 16.2 SDK. All iOS and iPadOS apps must be built with the iOS 17 SDK or later, included in Xcode 15 or later, in order to be uploaded to App Store Connect or submitted for distribution., id=d3398027-1191-44aa-ab20-f69f88cf79ae, code=STATE_ERROR.VALIDATION_ERROR.90725, title=Asset validation failed, NSLocalizedFailureReason=SDK version issue. This app was built with the iOS 16.2 SDK. All iOS and iPadOS apps must be built with the iOS 17 SDK or later, included in Xcode 15 or later, in order to be uploaded to App Store Connect or submitted for distribution., NSLocalizedDescription=Asset validation failed}";

[altool]     "iris-code" = "STATE_ERROR.VALIDATION_ERROR.90725";

[altool] }

Application Loader output above ^
ERROR: [ContentDelivery.Uploader] Asset validation failed (90725) SDK version issue. This app was built with the iOS 16.2 SDK. All iOS and iPadOS apps must be built with the iOS 17 SDK or later, included in Xcode 15 or later, in order to be uploaded to App Store Connect or submitted for distribution. (ID: d3398027-1191-44aa-ab20-f69f88cf79ae)
Error uploading '/var/folders/3n/ccx2khns0sq9dq7h2bjxcmf40000gn/T/be2f7d14-aeeb-4a9e-8b1c-f68a9e79aaf9.ipa'.
Asset validation failed SDK version issue. This app was built with the iOS 16.2 SDK. All iOS and iPadOS apps must be built with the iOS 17 SDK or later, included in Xcode 15 or later, in order to be uploaded to App Store Connect or submitted for distribution. (ID: d3398027-1191-44aa-ab20-f69f88cf79ae) (90725)
The call to the altool completed with a non-zero exit status: 1. This indicates a failure.
Could not download/upload from App Store Connect!
[!] Error uploading ipa file:
[Application Loader Error Output]: ERROR: [ContentDelivery.Uploader] Asset validation failed (90725) SDK version issue. This app was built with the iOS 16.2 SDK. All iOS and iPadOS apps must be built with the iOS 17 SDK or later, included in Xcode 15 or later, in order to be uploaded to App Store Connect or submitted for distribution. (ID: d3398027-1191-44aa-ab20-f69f88cf79ae)
[Application Loader Error Output]: Error uploading '/var/folders/3n/ccx2khns0sq9dq7h2bjxcmf40000gn/T/be2f7d14-aeeb-4a9e-8b1c-f68a9e79aaf9.ipa'.
[Application Loader Error Output]: Asset validation failed SDK version issue. This app was built with the iOS 16.2 SDK. All iOS and iPadOS apps must be built with the iOS 17 SDK or later, included in Xcode 15 or later, in order to be uploaded to App Store Connect or submitted for distribution. (ID: d3398027-1191-44aa-ab20-f69f88cf79ae) (90725)
[Application Loader Error Output]: The call to the altool completed with a non-zero exit status: 1. This indicates a failure.
Fastlane pilot failed
Failed to submit the app to the store

0
投票

我在使用 xCode 版本 15.3 的 Mos 14 (Sonoma) 上也遇到了同样的问题。 要解决这个问题,你只需要更新操作系统和xCode。这将解决问题。显然,出现此类错误,苹果会强制其用户更新操作系统。因为在新操作系统发布之前一切正常。

© www.soinside.com 2019 - 2024. All rights reserved.