【发布时间】:2016-09-06 20:20:28
【问题描述】:
我更新了我的项目 pod 以获取最新版本的 Google 消息传递,但现在我在构建我的项目时遇到了多个错误:
Use of undeclared type 'GGLInstanceIDDelegate'
Use of undeclared type 'GCMReceiverDelegate'
Use of unresolved identifier 'GGLContext'
Use of unresolved identifier 'GGLContext'
Use of unresolved identifier 'GCMConfig'
Use of unresolved identifier 'GCMService'
Use of unresolved identifier 'GCMPubSub'
Use of unresolved identifier 'GGLInstanceIDConfig'
Use of unresolved identifier 'GGLInstanceID'
Use of unresolved identifier 'kGGLInstanceIDRegisterAPNSOption'
Use of unresolved identifier 'kGGLInstanceIDAPNSServerTypeSandboxOption'
Use of unresolved identifier 'GGLInstanceID'
Use of unresolved identifier 'kGGLInstanceIDScopeGCM'
Use of unresolved identifier 'GCMService'
Use of unresolved identifier 'GCMService'
Use of unresolved identifier 'GGLInstanceID'Use of unresolved identifier 'kGGLInstanceIDScopeGCM'
这是pod update 命令的结果:
Analyzing dependencies
Downloading dependencies
Using GGLInstanceID (1.2.1)
Installing Google 2.0.4 (was 2.0.4)
Using GoogleCloudMessaging (1.2.0)
Using GoogleIPhoneUtilities (1.2.1)
Using GoogleInterchangeUtilities (1.2.1)
Installing GoogleMaps 2.0.1 (was 1.13.2)
Installing GoogleMobileAds (7.8.0)
Using GoogleNetworkingUtilities (1.2.1)
Using GoogleSymbolUtilities (1.1.1)
Using GoogleUtilities (1.3.1)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 3 dependencies from the Podfile and 10
total pods installed.
这是我的 podfile 的内容:
target 'myProject' do
source 'https://github.com/CocoaPods/Specs.git'
pod 'GoogleMaps'
pod 'Google/CloudMessaging'
end
我尝试再次运行pod update,但结果保持不变。也许需要修改 API 入口点?
我不知道我能做什么,任何帮助将不胜感激!
【问题讨论】:
-
您是否尝试过卸载 Google 消息 pod,然后卸载
pod install?
标签: swift google-maps google-cloud-messaging cocoapods