简体   繁体   English

使用 XCode 12 构建错误

[英]Build errors with XCode 12

Looks like Cocoapods and XCode12 are throwing lot of issues that are difficult to manage.看起来 Cocoapods 和 XCode12 抛出了很多难以管理的问题。 In XCode12, it prompted me to perform a settings update of project to update deployment target of all pods to iOS 12 and I did it.在 XCode12 中,它提示我执行项目的设置更新以将所有 pod 的部署目标更新到 iOS 12,我做到了。 But immediately after updating settings, I get these errors in nanopb-umbrella.h:但是在更新设置后,我立即在 nanopb-umbrella.h 中收到这些错误:

在此处输入图片说明

There are also pod warnings such as:还有 pod 警告,例如:

The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99.

I thought upgrading project settings that updates deployment target of each pod to iOS 12.0 will fix it but instead it causes build errors.我认为升级将每个 pod 的部署目标更新到 iOS 12.0 的项目设置将修复它,但它会导致构建错误。 Pod update doesn't help either. Pod 更新也无济于事。 Neither does pod deintegrate and reinstall along with removing DerivedData. pod 也不会在删除 DerivedData 的同时解体和重新安装。

A fix is at CocoaPods/CocoaPods#9905 and targeted for CocoaPods 1.10.修复位于 CocoaPods/CocoaPods#9905,针对 CocoaPods 1.10。 As a (temporary) workaround you can set "Quoted include in framework headers" in pods project build settings to NO.作为(临时)解决方法,您可以将 pods 项目构建设置中的“Quoted include in framework headers”设置为 NO。

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

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