我在MacBook Air M1上用Xcode 14.1创建了一个新的swiftui项目
如果我添加这些pod,它将构建并运行
控制台'Firebase FirestoreSwift'
窗格'GoogleMLKit/翻译','3.2.0'
或
pod 'Firebase存储'
窗格'GoogleMLKit/翻译','3.2.0'
或
控制台'Firebase FirestoreSwift'
pod 'Firebase存储'
但如果我试着把三个豆荚加在一起(
'Firebase存储'
'Firebase快速火焰存储器'
'谷歌MLKit/翻译','3.2.0'
)项目将不会生成,Xcode错误为:
~/Pod/Google实用程序组件/Google实用程序组件/源/GULCC组件容器.m:22:9未找到“Google实用程序/GULLogger.h”文件
在pod install
之后的终端中也有这些警告,但仅当将三个有问题的pod安装在一起时。
Analyzing dependencies
Downloading dependencies
Installing BoringSSL-GRPC (0.0.24)
Installing FirebaseAnalytics (3.4.2)
Installing FirebaseCore (10.1.0)
Installing FirebaseCoreExtension (10.1.0)
Installing FirebaseCoreInternal (10.1.0)
Installing FirebaseFirestore (10.1.0)
Installing FirebaseFirestoreSwift (10.1.0)
Installing FirebaseInstanceID (1.0.9)
Installing FirebaseSharedSwift (10.1.0)
Installing FirebaseStorage (1.0.4)
Installing GTMSessionFetcher (1.7.2)
Installing GoogleDataTransport (9.2.0)
Installing GoogleInterchangeUtilities (1.2.2)
Installing GoogleMLKit (3.2.0)
Installing GoogleSymbolUtilities (1.1.2)
Installing GoogleToolboxForMac (2.3.2)
Installing GoogleUtilities (1.3.2)
Installing GoogleUtilities (7.10.0)
Installing GoogleUtilitiesComponents (1.1.0)
Installing Libuv-gRPC (0.0.10)
Installing MLKitCommon (8.0.0)
Installing MLKitNaturalLanguage (4.2.0)
Installing MLKitTranslate (2.2.0)
Installing PromisesObjC (2.1.1)
Installing Protobuf (3.21.9)
Installing SSZipArchive (2.4.3)
Installing abseil (1.20211102.0)
Installing gRPC-C++ (1.44.0)
Installing gRPC-Core (1.44.0)
Installing leveldb-library (1.22.1)
Installing nanopb (2.30909.0)
Generating Pods project
Integrating client project
Pod installation complete! There are 3 dependencies from the Podfile and 31 total pods installed.
[!] Unable to read the license file `LICENSE` for the spec `GoogleUtilities (7.10.0)`
[!] Unable to read the license file `LICENSE` for the spec `GoogleUtilities (7.10.0)`
[!] [Xcodeproj] Generated duplicate UUIDs:
PBXFileReference -- Pods.xcodeproj/mainGroup/children/children:children:|,|,|,displayName:BoringSSL-GRPC,isa:PBXGroup,name:BoringSSL-GRPC,path:BoringSSL-GRPC,sourceTree:<group>,,children:|,|,displayName:FirebaseAnalytics,isa:PBXGroup,name:FirebaseAnalytics,path:FirebaseAnalytics,sourceTree:<group>,,children:|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,displayName:FirebaseCore,isa:PBXGroup,name:FirebaseCore,path:FirebaseCore,sourceTree:<group>,,children:|,|,|,|,|,|,|,|,|,|,|,|,displayName:FirebaseCoreExtension,isa:PBXGroup,name:FirebaseCoreExtension,path:FirebaseCoreExtension,sourceTree:<group>,,children:|,|,|,|,|,|,|,|,|,|,|,|,displayName:FirebaseCoreInternal,isa:PBXGroup,name:FirebaseCoreInternal,path:FirebaseCoreInternal,sourceTree:<group>,,children:|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,displayName:FirebaseFirestore,isa:PBXGroup,name:FirebaseFirestore,path:FirebaseFirestore,sourceTree:<group>,,children:|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,displayName:FirebaseFirestoreSwift,isa:PBXGroup,name:FirebaseFirestoreSwift,path:FirebaseFirestoreSwift,sourceTree:<group>,,children:|,|,displayName:FirebaseInstanceID,isa:PBXGroup,name:FirebaseInstanceID,path:FirebaseInstanceID,sourceTree:<group>,,children:|,|,|,displayName:FirebaseSharedSwift,isa:PBXGroup,name:FirebaseSharedSwift,path:FirebaseSharedSwift,sourceTree:<group>,,children:|,|,displayName:FirebaseStorage,isa:PBXGroup,name:FirebaseStorage,path:FirebaseStorage,sourceTree:<group>,,children:|,|,displayName:GTMSessionFetcher,isa:PBXGroup,name:GTMSessionFetcher,path:GTMSessionFetcher,sourceTree:<group>,,children:|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,displayName:GoogleDataTransport,isa:PBXGroup,name:GoogleDataTransport,path:GoogleDataTransport,sourceTree:<group>,,children:|,|,displayName:GoogleInterchangeUtilities,isa:PBXGroup,name:GoogleInterchangeUtilities,path:GoogleInterchangeUtilities,sourceTree:<group>,,children:|,|,displayName:GoogleMLKit,isa:PBXGroup,name:GoogleMLKit,path:GoogleMLKit,sourceTree:<group>,,children:|,|,displayName:GoogleSymbolUtilities,isa:PBXGroup,name:GoogleSymbolUtilities,path:GoogleSymbolUtilities,sourceTree:<group>,,children:|,|,|,|,|,|,|,|,displayName:GoogleToolboxForMac,isa:PBXGroup,name:GoogleToolboxForMac,path:GoogleToolboxForMac,sourceTree:<group>,,children:|,|,displayName:GoogleUtilities,isa:PBXGroup,name:GoogleUtilities,path:GoogleUtilities,sourceTree:<group>,,children:|,|,|,|,|,|,|,|,|,|,|,displayName:GoogleUtilitiesComponents,isa:PBXGroup,name:GoogleUtilitiesComponents,path:GoogleUtilitiesComponents,sourceTree:<group>,,children:|,|,|,displayName:Libuv-gRPC,isa:PBXGroup,name:Libuv-gRPC,path:Libuv-gRPC,sourceTree:<group>,,children:|,|,displayName:MLKitCommon,isa:PBXGroup,name:MLKitCommon,path:MLKitCommon,sourceTree:<group>,,children:|,|,displayName:MLKitNaturalLanguage,isa:PBXGroup,name:MLKitNaturalLanguage,path:MLKitNaturalLanguage,sourceTree:<group>,,children:|,|,|,displayName:MLKitTranslate,isa:PBXGroup,name:MLKitTranslate,path:MLKitTranslate,sourceTree:<group>,,children:|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,displayName:PromisesObjC,isa:PBXGroup,name:PromisesObjC,path:PromisesObjC,sourceTree:<group>,,children:|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,displayName:Protobuf,isa:PBXGroup,name:Protobuf,path:Protobuf,sourceTree:<group>,,children:|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,displayName:SSZipArchive,isa:PBXGroup,name:SSZipArchive,path:SSZipArchive,sourceTree:<group>,,children:|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,displayName:abseil,isa:PBXGroup,name:abseil,path:abseil,sourceTree:<group>,,children:|,|,|,|,displayName:gRPC-C++,isa:PBXGroup,name:gRPC-C++,path:gRPC-C++,sourceTree:<group>,,children:|,|,|,displayName:gRPC-Core,isa:PBXGroup,name:gRPC-Core,path:gRPC-Core,sourceTree:<group>,,children:|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,displayName:leveldb-library,isa:PBXGroup,name:leveldb-library,path:leveldb-library,sourceTree:<group>,,children:|,|,|,|,|,|,|,|,|,|,displayName:nanopb,isa:PBXGroup,name:nanopb,path:nanopb,sourceTree:<group>,,displayName:Pods,isa:PBXGroup,name:Pods,sourceTree:<group>,/Pods/children/children:children:|,displayName:Frameworks,isa:PBXGroup,name:Frameworks,sourceTree:<group>,,children:|,|,|,|,displayName:Support Files,isa:PBXGroup,name:Support Files,path:../Target Support Files/GoogleUtilities,sourceTree:<group>,,displayName:GoogleUtilities,isa:PBXGroup,name:GoogleUtilities,path:GoogleUtilities,sourceTree:<group>,/Pods/GoogleUtilities/children/children:displayName:GoogleUtilities.debug.xcconfig,includeInIndex:1,isa:PBXFileReference,lastKnownFileType:text.xcconfig,path:GoogleUtilities.debug.xcconfig,sourceTree:<group>,,displayName:GoogleUtilities.release.xcconfig,includeInIndex:1,isa:PBXFileReference,lastKnownFileType:text.xcconfig,path:GoogleUtilities.release.xcconfig,sourceTree:<group>,,displayName:GoogleUtilities.debug.xcconfig,includeInIndex:1,isa:PBXFileReference,lastKnownFileType:text.xcconfig,path:GoogleUtilities.debug.xcconfig,sourceTree:<group>,,displayName:GoogleUtilities.release.xcconfig,includeInIndex:1,isa:PBXFileReference,lastKnownFileType:text.xcconfig,path:GoogleUtilities.release.xcconfig,sourceTree:<group>,,displayName:Support Files,isa:PBXGroup,name:Support Files,path:../Target Support Files/GoogleUtilities,sourceTree:<group>,/Pods/GoogleUtilities/Support Files/children/displayName:GoogleUtilities.debug.xcconfig,includeInIndex:1,isa:PBXFileReference,lastKnownFileType:text.xcconfig,path:GoogleUtilities.debug.xcconfig,sourceTree:<group>,/Pods/GoogleUtilities/Support Files/GoogleUtilities.debug.xcconfig
PBXFileReference -- Pods.xcodeproj/mainGroup/children/children:children:|,|,|,displayName:BoringSSL-GRPC,isa:PBXGroup,name:BoringSSL-GRPC,path:BoringSSL-GRPC,sourceTree:<group>,,children:|,|,displayName:FirebaseAnalytics,isa:PBXGroup,name:FirebaseAnalytics,path:FirebaseAnalytics,sourceTree:<group>,,children:|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,displayName:FirebaseCore,isa:PBXGroup,name:FirebaseCore,path:FirebaseCore,sourceTree:<group>,,children:|,|,|,|,|,|,|,|,|,|,|,|,displayName:FirebaseCoreExtension,isa:PBXGroup,name:FirebaseCoreExtension,path:FirebaseCoreExtension,sourceTree:<group>,,children:|,|,|,|,|,|,|,|,|,|,|,|,displayName:FirebaseCoreInternal,isa:PBXGroup,name:FirebaseCoreInternal,path:FirebaseCoreInternal,sourceTree:<group>,,children:|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,displayName:FirebaseFirestore,isa:PBXGroup,name:FirebaseFirestore,path:FirebaseFirestore,sourceTree:<group>,,children:|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,displayName:FirebaseFirestoreSwift,isa:PBXGroup,name:FirebaseFirestoreSwift,path:FirebaseFirestoreSwift,sourceTree:<group>,,children:|,|,displayName:FirebaseInstanceID,isa:PBXGroup,name:FirebaseInstanceID,path:FirebaseInstanceID,sourceTree:<group>,,children:|,|,|,displayName:FirebaseSharedSwift,isa:PBXGroup,name:FirebaseSharedSwift,path:FirebaseSharedSwift,sourceTree:<group>,,children:|,|,displayName:FirebaseStorage,isa:PBXGroup,name:FirebaseStorage,path:FirebaseStorage,sourceTree:<group>,,children:|,|,displayName:GTMSessionFetcher,isa:PBXGroup,name:GTMSessionFetcher,path:GTMSessionFetcher,sourceTree:<group>,,children:|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,displayName:GoogleDataTransport,isa:PBXGroup,name:GoogleDataTransport,path:GoogleDataTransport,sourceTree:<group>,,children:|,|,displayName:GoogleInterchangeUtilities,isa:PBXGroup,name:GoogleInterchangeUtilities,path:GoogleInterchangeUtilities,sourceTree:<group>,,children:|,|,displayName:GoogleMLKit,isa:PBXGroup,name:GoogleMLKit,path:GoogleMLKit,sourceTree:<group>,,children:|,|,displayName:GoogleSymbolUtilities,isa:PBXGroup,name:GoogleSymbolUtilities,path:GoogleSymbolUtilities,sourceTree:<group>,,children:|,|,|,|,|,|,|,|,displayName:GoogleToolboxForMac,isa:PBXGroup,name:GoogleToolboxForMac,path:GoogleToolboxForMac,sourceTree:<group>,,children:|,|,displayName:GoogleUtilities,isa:PBXGroup,name:GoogleUtilities,path:GoogleUtilities,sourceTree:<group>,,children:|,|,|,|,|,|,|,|,|,|,|,displayName:GoogleUtilitiesComponents,isa:PBXGroup,name:GoogleUtilitiesComponents,path:GoogleUtilitiesComponents,sourceTree:<group>,,children:|,|,|,displayName:Libuv-gRPC,isa:PBXGroup,name:Libuv-gRPC,path:Libuv-gRPC,sourceTree:<group>,,children:|,|,displayName:MLKitCommon,isa:PBXGroup,name:MLKitCommon,path:MLKitCommon,sourceTree:<group>,,children:|,|,displayName:MLKitNaturalLanguage,isa:PBXGroup,name:MLKitNaturalLanguage,path:MLKitNaturalLanguage,sourceTree:<group>,,children:|,|,|,displayName:MLKitTranslate,isa:PBXGroup,name:MLKitTranslate,path:MLKitTranslate,sourceTree:<group>,,children:|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,displayName:PromisesObjC,isa:PBXGroup,name:PromisesObjC,path:PromisesObjC,sourceTree:<group>,,children:|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,displayName:Protobuf,isa:PBXGroup,name:Protobuf,path:Protobuf,sourceTree:<group>,,children:|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,displayName:SSZipArchive,isa:PBXGroup,name:SSZipArchive,path:SSZipArchive,sourceTree:<group>,,children:|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,displayName:abseil,isa:PBXGroup,name:abseil,path:abseil,sourceTree:<group>,,children:|,|,|,|,displayName:gRPC-C++,isa:PBXGroup,name:gRPC-C++,path:gRPC-C++,sourceTree:<group>,,children:|,|,|,displayName:gRPC-Core,isa:PBXGroup,name:gRPC-Core,path:gRPC-Core,sourceTree:<group>,,children:|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,displayName:leveldb-library,isa:PBXGroup,name:leveldb-library,path:leveldb-library,sourceTree:<group>,,children:|,|,|,|,|,|,|,|,|,|,displayName:nanopb,isa:PBXGroup,name:nanopb,path:nanopb,sourceTree:<group>,,displayName:Pods,isa:PBXGroup,name:Pods,sourceTree:<group>,/Pods/children/children:children:|,displayName:Frameworks,isa:PBXGroup,name:Frameworks,sourceTree:<group>,,children:|,|,|,|,displayName:Support Files,isa:PBXGroup,name:Support Files,path:../Target Support Files/GoogleUtilities,sourceTree:<group>,,displayName:GoogleUtilities,isa:PBXGroup,name:GoogleUtilities,path:GoogleUtilities,sourceTree:<group>,/Pods/GoogleUtilities/children/children:displayName:GoogleUtilities.debug.xcconfig,includeInIndex:1,isa:PBXFileReference,lastKnownFileType:text.xcconfig,path:GoogleUtilities.debug.xcconfig,sourceTree:<group>,,displayName:GoogleUtilities.release.xcconfig,includeInIndex:1,isa:PBXFileReference,lastKnownFileType:text.xcconfig,path:GoogleUtilities.release.xcconfig,sourceTree:<group>,,displayName:GoogleUtilities.debug.xcconfig,includeInIndex:1,isa:PBXFileReference,lastKnownFileType:text.xcconfig,path:GoogleUtilities.debug.xcconfig,sourceTree:<group>,,displayName:GoogleUtilities.release.xcconfig,includeInIndex:1,isa:PBXFileReference,lastKnownFileType:text.xcconfig,path:GoogleUtilities.release.xcconfig,sourceTree:<group>,,displayName:Support Files,isa:PBXGroup,name:Support Files,path:../Target Support Files/GoogleUtilities,sourceTree:<group>,/Pods/GoogleUtilities/Support Files/children/displayName:GoogleUtilities.release.xcconfig,includeInIndex:1,isa:PBXFileReference,lastKnownFileType:text.xcconfig,path:GoogleUtilities.release.xcconfig,sourceTree:<group>,/Pods/GoogleUtilities/Support Files/GoogleUtilities.release.xcconfig
[!] [Xcodeproj] Generated duplicate UUIDs:
PBXAggregateTarget -- 8D7F5D5DD528D21A72DC87ADA5B12E2D
她是Podfile:
target 'testTranslateAndFirebase' do
use_frameworks!
pod 'FirebaseStorage'
pod 'FirebaseFirestoreSwift'
pod 'GoogleMLKit/Translate', '3.2.0'
end
编辑:-我尝试了贬值的“FirebaseMLNLTranslate”代替“GoogleMLKit/Translate”,没有构建错误。应用程序构建,运行和翻译。我如何让当前的GoogleMLKit/Translate与两个Firebase Pod一起工作,因为它在与单个Firebase Pod一起安装和构建时?
有人能帮助或确认这是一个错误吗?
1条答案
按热度按时间pbwdgjma1#
重要提示,请确保您的podfile包含(您的podfile缺少此行)
10.0非常重要!设置为9.0甚至16都将引发错误。
我建立了一个快速项目使用更新的podfile和它的工作很好-这是我的podfile
并且输出
我建议首先使用
然后删除
podfile.lock
和.xcworkspace
文件然后更新您的播客文件,