ios pod install gcm

2019-09-06 07:11发布

Can't install google gcm with pod. Getting this error:

[!] The 'Pods-project' target has transitive dependencies that include static binaries: (/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, and /Users/mirzadelic/Projekti/project/Pods/GoogleUtilities/Libraries/libGTMStackTrace.a)

I tried without use_framework in pod file, but still same. How can i fix this?

2条回答
2楼-- · 2019-09-06 07:40

Remove the use_frameworks! from your Podfile and import any Swift libraries manually.

Source (my question): 'The 'Pods' target has transitive dependencies that include static binaries' when installing GCM

查看更多
我命由我不由天
3楼-- · 2019-09-06 07:43

Are you getting

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

Then update your cocoapods by using sudo gem install cocoa pods.

After successful update try

pod update

This resolved my issue.

查看更多
登录 后发表回答