gpt4 book ai didi

swift - GoogleDataTransport 在 iOS14 上抛出双引号包含在框架标题中预期的尖括号错误

转载 作者:行者123 更新时间:2023-12-03 07:26:46 30 4
gpt4 key购买 nike

我刚刚将 XCode 更新到版本 12,并且我正在使用 Firebase。我也更新了 pod,但是当我构建项目时,它给了我错误:

Double-quoted include "pb.h" in framework header, expected angle-bracketed instead
这些错误是多个并且在 GoogleDataTransport 的 pod 中
enter image description here
即使我更换 ""<>它仍然没有消失。

最佳答案

Apparently installing cocoapods version 1.10.0 fixes it all. 
If that doesn't work for you, please continue reading.
There's lots of temp fixes that'll definitely work for you.
Here's the command to uninstall and reinstall that 1.10.1 version:
gem uninstall cocoapods; gem install cocoapods -v '1.10.1'

ONLY CONTINUE READING IF THE ABOVE DIDN'T WORK FOR YOU.





如果您是经验丰富的 Xcode 用户,只需查看下图,您就会确切地知道该怎么做,否则请按照详细步骤操作。
如果更新 cocoapods不适合你,试试这个......这对我有用。

Please note: This is a workaround. Once cocoapods fix this in future releases, please update cocoapods instead of doing the workaround.

@iHS has a great temp cocoapods fix

@haley-huynh has a great cocoapods update example.

@bogdan-razvan Said that running sudo gem install cocoapods fixed the problem for him ... Maybe give it a shot if not already!

All of those are worth giving a shot before this workaround.


话虽如此,我们并不总是有时间等待修复发布🙄...所以打开 Xcode,让我们开始解决方法。
第一步: Navigate
  • 在您的导航器(左侧的项目文件)中,单击 Pods(它旁边通常有这个蓝色的 xcode 文件)。单击它后,它应该会打开右侧的 Pod 目标和设置。

  • 第 2 步: Build Settings
  • 选择 Build Settings然后还要确保 All是从三种build设置过滤器类型( BasicCustomizedAll )中选择出来的

  • 第 3 步: Search
  • 在build设置中,搜索 quoted include .
  • 您现在应该看到设置 Quoted Include In Framework Header

  • 第 4 步: Set to No
  • 更改设置值 Quoted Include In Framework HeaderNo

  • 第 4 步: Rebuild
  • 重建你的性感项目!

  • 第 5 步: Don't be fooled
  • 重建项目后。如果您仍然看到错误,请务必检查这些错误是什么,因为它肯定不是引用错误。

  • 他是一些视觉刺激的图片:
    visual representation of the steps to fix

    关于swift - GoogleDataTransport 在 iOS14 上抛出双引号包含在框架标题中预期的尖括号错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63951540/

    30 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com