ios pod install gcm

时间:2015-06-27 16:01:32

标签: ios google-cloud-messaging cocoapods

无法使用pod安装google gcm。  得到此错误:

  

[!]'Pods-project'目标具有传递依赖性   包含静态二进制文件:   (/Users/mirzadelic/Projekti/project/Pods/GGLInstanceID/Libraries/libGGLInstanceIDLib.a,   /Users/mirzadelic/Projekti/project/Pods/Google/Libraries/libGGLCloudMessaging.a,   /Users/mirzadelic/Projekti/project/Pods/Google/Libraries/libGGLCore.a,   /Users/mirzadelic/Projekti/project/Pods/GoogleCloudMessaging/Libraries/libGcmLib.a,   /Users/mirzadelic/Projekti/project/Pods/GoogleInterchangeUtilities/Libraries/libProtocolBuffers.a,   /Users/mirzadelic/Projekti/project/Pods/GoogleNetworkingUtilities/Libraries/libGTMSessionFetcher_full.a,   /Users/mirzadelic/Projekti/project/Pods/GoogleNetworkingUtilities/Libraries/libGTMSessionFetcher_core.a,   /Users/mirzadelic/Projekti/project/Pods/GoogleSymbolUtilities/Libraries/libGSDK_Overload.a,   /Users/mirzadelic/Projekti/project/Pods/GoogleUtilities/Libraries/libGTM_iPhone.a,   /Users/mirzadelic/Projekti/project/Pods/GoogleUtilities/Libraries/libGTM_core.a,   /Users/mirzadelic/Projekti/project/Pods/GoogleUtilities/Libraries/libGTM_UIFont+LineHeight.a,   /Users/mirzadelic/Projekti/project/Pods/GoogleUtilities/Libraries/libGTM_SystemVersion.a,   /Users/mirzadelic/Projekti/project/Pods/GoogleUtilities/Libraries/libGTM_StringEncoding.a,   /Users/mirzadelic/Projekti/project/Pods/GoogleUtilities/Libraries/libGTM_RoundedRectPath.a,   /Users/mirzadelic/Projekti/project/Pods/GoogleUtilities/Libraries/libGTM_Regex.a,   /Users/mirzadelic/Projekti/project/Pods/GoogleUtilities/Libraries/libGTM_NSStringXML.a,   /Users/mirzadelic/Projekti/project/Pods/GoogleUtilities/Libraries/libGTM_NSStringHTML.a,   /Users/mirzadelic/Projekti/project/Pods/GoogleUtilities/Libraries/libGTM_NSScannerJSON.a,   /Users/mirzadelic/Projekti/project/Pods/GoogleUtilities/Libraries/libGTM_NSDictionary+URLArguments.a,   /Users/mirzadelic/Projekti/project/Pods/GoogleUtilities/Libraries/libGTM_KVO.a,   /Users/mirzadelic/Projekti/project/Pods/GoogleUtilities/Libraries/libGTM_GTMURLBuilder.a,   /Users/mirzadelic/Projekti/project/Pods/GoogleUtilities/Libraries/libGTM_DebugUtils.a,   /Users/mirzadelic/Projekti/project/Pods/GoogleUtilities/Libraries/libGTM_AddressBook.a,   和   /Users/mirzadelic/Projekti/project/Pods/GoogleUtilities/Libraries/libGTMStackTrace.a)

我尝试在pod文件中没有use_framework,但仍然相同。 我该如何解决这个问题?

2 个答案:

答案 0 :(得分:1)

从Podfile中删除use_frameworks!并手动导入任何Swift库。

来源(我的问题):'The 'Pods' target has transitive dependencies that include static binaries' when installing GCM

答案 1 :(得分:1)

你有没有

CocoaPods 0.38.2 is available.
To update use: `gem install cocoapods` ?

然后使用sudo gem install cocoa pods更新您的cocoapod。

成功更新后尝试

pod update

这解决了我的问题。