Xcode gRPC-C++ 编译错误的原因是什么?

What causes Xcode gRPC-C++ Compile Error?

我在编译 Xcode IOS 应用程序时一直 运行 遇到问题。每次我尝试 运行 我的应用程序时,我都会 运行 遇到问题,因为我遇到了来自 gRPC-C++ 包的 100 个问题(见下图)。我不确定如何解决这些问题,因为我什至不知道 gRPC-C++ 是什么(我的 Podfile 中没有安装它)。另外,我的项目是用swift.

写的

这是包含所有错误的图像:

这是我的 Podfile 的内容:

platform :ios, '10.0'

    target 'SPRAIN' do

      use_frameworks!

      # Firebase

      pod 'Firebase/Analytics'
      pod 'Firebase/Database' 
      pod 'FirebaseUI'
      pod 'Fabric'
      pod 'Crashlytics'

      # Other

     pod 'Toast-Swift'
     pod 'SwifterSwift'
     pod 'SwiftRichString'
     pod 'VHProgressBar'
     pod 'SnapKit', '~> 4.0.0'

end

作为参考,以下是每个依赖项的安装版本:

BoringSSL-GRPC (0.0.3)
Crashlytics (3.13.4)
FBSDKCoreKit (5.2.3)
FBSDKLoginKit (5.2.3)
Fabric (1.10.2)
Firebase (6.5.0)
FirebaseAnalytics (6.0.4)
FirebaseAuth (6.2.1)
FirebaseAuthInterop (1.0.0)
FirebaseCore (6.1.0)
FirebaseDatabase (6.0.0)
FirebaseFirestore (1.4.2)
FirebaseInstanceID (4.2.2)
FirebaseStorage (3.4.0)
FirebaseUI (8.0.4)
GTMSessionFetcher (1.2.2)
GoogleAppMeasurement (6.0.4)
GoogleSignIn (4.4.0)
GoogleToolboxForMac (2.2.1)
GoogleUtilities (6.2.3)
Protobuf (3.9.0)
SDWebImage (5.0.6)
SnapKit (4.0.1)
SwiftRichString (3.0.1)
SwifterSwift (5.0.0)
Toast-Swift (5.0.0)
VHProgressBar (1.0.2)
gRPC-C++ (0.0.9)
gRPC-Core (1.21.0)
leveldb-library (1.20)
nanopb (0.3.901)

找到解决此问题的方法。必须完全删除所有剩余的椰子(删除 pods 目录、PodfilePodfile.lock 文件,以及 project.xcworkspace)。卸载并没有简单地起作用,似乎有诀窍的是删除 project.xcworkspace