简体   繁体   English

Xcode 12,iOS 14,吊舱

[英]Xcode 12, iOS 14, Pods

After updating the iPhone to ios 14, xcode 11.5 stopped launching projects on the iPhone, I decided to upgrade xcode to version 12 and got a huge number of errors related to Pods for 60 of them... Basically, everything is related to the fact that quotes cannot be used in Pods, and need to use <> to connect libraries.将 iPhone 更新到 ios 14 后,xcode 11.5 停止在 iPhone 上启动项目,我决定将 xcode 升级到版本 12 并得到大量与事实相关的错误......在 Pod 中不能使用引号,需要使用 <> 来连接库。 When I correct it with <>, I get errors that I need to use "", but this is all warning, namely error due to the fact that xCode stopped seeing one library.当我用 <> 更正它时,我得到了我需要使用“”的错误,但这都是警告,即由于 xCode 停止看到一个库而导致的错误。 On the screen all the info.在屏幕上的所有信息。

在此处输入图像描述 Thank you in advance for your help)预先感谢您的帮助)

How to fix it?如何解决?

I had a similar issue and I fixed by changing the deployment target of all Pods.我有一个类似的问题,我通过更改所有 Pod 的部署目标来修复。 Most Pods were targeting iOS 8.0, which is no longer supported by Xcode 12.大多数 Pod 的目标是 iOS 8.0,Xcode 12 不再支持。

Make Sure You have Same Version for your deployment target and podfile platform确保您的部署目标和 podfile 平台具有相同的版本

  1. Don't open your Project in XCode 12 after XCode Update不要在 XCode 更新之后在 XCode 12 中打开您的项目

  2. Open Your Project Podfile through terminal通过终端打开您的项目 Podfile

  3. Just remove all your lib and do pod install (Also remove that extra codein podfile if you have written anything regarding architecture of 86 or 64 which we have write for remove warnings)只需删除所有库并执行 pod install (如果您编写了有关 86 或 64 架构的任何内容,请删除额外的代码在 podfile 中,我们为删除警告而写)

  4. Clear derive data by path without opening XCode (~/Library/Developer/Xcode/DerivedData)按路径清除派生数据而不打开 XCode (~/Library/Developer/Xcode/DerivedData)

  5. After Removed all lib all other lib again and do pod install再次删除所有库后所有其他库并执行 pod install

  6. Open Your Project and set Build System to New Build System (Default) in Shared Workspace Settings and Use Shared Setting in Build System in Pre-User WorkSpace Settings (You can found this settings while XCode Selected go to file menu and click on WorkSpace Settings)打开您的项目并在 Shared Workspace Settings 中将 Build System 设置为 New Build System(默认)并在 Pre-User WorkSpace Settings 中的 Build System 中使用 Shared Setting(您可以在 XCode 选择 go 到文件菜单并单击 WorkSpace Settings 时找到此设置)

  7. Then Do Clean and build then run it you will not found things regarding module not found you will face some syntax updates or any lib updates fix those and go for run然后执行清理并构建然后运行它,您将找不到有关未找到模块的内容,您将面临一些语法更新或任何库更新修复这些和 go 运行

Try to install pod again, remove all pod and install again.尝试再次安装 pod,删除所有 pod 并重新安装。

pod deintegrate
pod install

or或者

sudo rm -fr ~/Library/Caches/CocoaPods/
pod install

clear DerivedData and run again.清除 DerivedData 并再次运行。

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

相关问题 Xcode 12 和 iOS 14 SDK - Xcode 12 and iOS 14 SDK Xcode 12 和 iOS 14 中的手势问题 - Problem with gesture in Xcode 12 and iOS 14 XCode 12 和 IOS 14 中 UITableView 的问题 - Problem with UITableView in XCode 12 and IOS 14 Alignment 在 ios14、xcode12 中不工作 swiftUI - Alignment not working in ios14, xcode12 swiftUI iOS 14 &amp; XCode 12 beta 2 - 从 Firebase 读取数据 - iOS 14 & XCode 12 beta 2 - Reading data from Firebase SwiftUI:在尝试构建到 iOS 13 和 iOS 14 时使用 if #available 时出错 - SwiftUI: Error while using if #available while trying to build to iOS 13 and iOS 14 in Xcode 12 beta 2 SwiftUI 在 NavigationView 中添加个人警报视图,后退按钮不适用于 Xcode 12 iOS14 - SwiftUI adding personal alert view in NavigationView, the back button doesn't work with Xcode 12 iOS14 如何将此经典 Swift 线更新为更新的 Swift(与 Xcode 12 和 Z1BDF6059091920DB1EBZCBDF148 正确兼容)? - How to update this classic Swift line to a more recent Swift (compatible with Xcode 12 and iOS 14) properly? (Firebase Xcode 12 iOS 14) 如何正确调用和设置孩子? - (Firebase Xcode 12 iOS 14) How can I call and set a child correctly? Xcode 12 beta 和 iOS 14:奇怪的控制台日志“objc [5551]:Class ...在两者中都实现了” - Xcode 12 beta and iOS 14: Weird console logs "objc[5551]: Class ... is implemented in both"
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM