简体   繁体   English

Xcode 13.2 - 添加 package 挂起“准备验证”

[英]Xcode 13.2 - Adding package hangs on "Preparing to validate"

I have recently updated to Xcode 13.2 from the Mac App Store.我最近从 Mac App Store 更新到 Xcode 13.2。 While trying to fix an issue with a Swift package, I uninstalled it and now I cannot reinstall the package.在尝试解决 Swift package 的问题时,我卸载了它,现在我无法重新安装 package。

When I try to add a package from GitHub the process hangs immediately on "Preparing to validate".当我尝试从 GitHub 添加 package 时,该过程立即挂起“准备验证”。

I already attempted to restart Xcode, restart my mac, clean derived data, reset Swift package caches and update package versions to no avail. I already attempted to restart Xcode, restart my mac, clean derived data, reset Swift package caches and update package versions to no avail.

Is there any way around this issue?有没有办法解决这个问题? 问题截图

Check https://developer.apple.com/forums/thread/696504 and re-download Xcode 13.2 directly from the releases section of the Apple Developer website: https://developer.apple.com/download/release/ Check https://developer.apple.com/forums/thread/696504 and re-download Xcode 13.2 directly from the releases section of the Apple Developer website: https://developer.apple.com/download/release/

Make sure to update Xcode to 13.2.1确保将 Xcode 更新到 13.2.1

They have just released the update that should fix it.他们刚刚发布了应该修复它的更新。 See in the link that @mikeyh posted in the other answer: https://developer.apple.com/forums/thread/696504 .请参阅@mikeyh 在另一个答案中发布的链接: https://developer.apple.com/forums/thread/696504

I'm on Xcode 13.4.1 and ran into this same problem when trying to convert my project from CocoaPods to SPM packages because I was using the Legacy Build Location setting.我在 Xcode 13.4.1 上尝试将我的项目从 CocoaPods 转换为 SPM 包时遇到了同样的问题,因为我使用的是旧版构建位置设置。 When trying to install any package it would immediately hang on "Preparing to validate..." just like in the screenshot of the question.当尝试安装任何 package 时,它会立即挂起“准备验证...”,就像在问题的屏幕截图中一样。

I did get an error stating something like the package could not be added because of using the Legacy Build Location setting , however I did not notice this in the Issue Navigator for a while because once I removed all of my CocoaPods and before I could add the SPM packages I was getting hundreds of build errors.我确实收到一个错误,指出由于使用旧版构建位置设置而无法添加 package 之类的东西,但是我有一段时间没有在问题导航器中注意到这一点,因为一旦我删除了所有 CocoaPods 并且在我可以添加之前SPM 包我遇到了数百个构建错误。

To fix (if your project can use the default Build Location setting) is to set it by going to修复(如果你的项目可以使用默认的构建位置设置)是通过去设置它
File->Project Settings...->Advanced...->Xcode Default

高级项目设置

I am having the same issue adding the amplify-ios package from Amazon.. I am able to find the package, but not able to add.. stuck on validate.我在从亚马逊添加 amplify-ios package 时遇到同样的问题。我能够找到 package,但无法添加。卡在验证上。 I am on latest release of Monterey 12.1, Xcode Version 13.2 (13C90)... reinstalled from the developer website.. reboot, restart.. nothing.. Anyone tried to install previous version of Xcode?我正在使用最新版本的 Monterey 12.1,Xcode 版本 13.2 (13C90)...从开发人员网站重新安装..重新启动,重新启动..什么都没有..有人试图安装以前版本的 Xcode? Where can we get it?我们在哪里可以得到它?

Thanks谢谢

Sami萨米人

Just Update from the App Store, they released the update to 13.2.1 and it is about 430MB刚刚从 App Store 更新,他们发布了 13.2.1 的更新,大约 430MB

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM