Ld: file not found: /Pods/GoogleUtilities/Libraries/libGTM_NSData+zlib.a fix problem

In Pod, it looks like this.

libGTM_NSData+zlib_external.a 

enter image description here

In the Build settings it looks like below

 $(PODS_ROOT)/GoogleUtilities/Libraries/libGTM_NSData+zlib.a 

In the configuration, it displays like this.

 -force_load $(PODS_ROOT)/GoogleUtilities/Libraries/libGTM_NSData+zlib_external.a 

How to remove the error without finding libGTM_NSData + zlib.a, since I know that the new google library only has libGTM_NSData + zlib_external.a.

I use

 pod 'Google/Analytics' pod 'Google/SignIn' 

in my pod file.

Please provide an appropriate structure to address this problem. I tried to rename and keep all the same name as _external, this did not solve the problem.

The final installation of Pods through the terminal shows the log below:

  Analyzing dependencies Downloading dependencies Installing AFNetworking (2.6.3) Installing AMScrollingNavbar (1.5.1) Installing Bolts (1.7.0) Installing ChartboostSDK (6.4.0) Installing Charts (2.2.4) Installing Crashlytics (3.7.0) Installing Fabric (1.6.7) Installing Google (2.0.3) Installing Google-Mobile-Ads-SDK (7.7.1) Installing GoogleAnalytics (3.14.0) Installing GoogleAppUtilities (1.1.0) Installing GoogleAuthUtilities (2.0.0) Installing GoogleInterchangeUtilities (1.2.0) Installing GoogleNetworkingUtilities (1.2.0) Installing GoogleSignIn (3.0.0) Installing GoogleSymbolUtilities (1.1.0) Installing GoogleUtilities (1.2.0) Installing MMDrawerController (0.5.7) Installing Optimizely-iOS-SDK (1.4.2) Installing Parse (1.13.0) Installing SDWebImage (3.7.5) Installing Shapes (1.0.2) Installing SocketRocket (0.3.1-beta2) Installing libPusher (1.5) Installing pop (1.0.9) Generating Pods project Integrating client project 

Thanks.

+6
source share
3 answers
  • Open Build Settings
  • Go to Framework Search Paths
  • Leave only these two, as shown in the image, and delete all the others, for example libGTM_NSData + zlib.a or any others.

enter image description here

  1. This legacy and Project Directory will lead to automatic detection using Pods, and it will not pose any more problems for you.
+5
source

I had the same problem today, deleting the pod cache and reinstalling from scratch helped. close Xcode, delete pod files, then

 rm -rf "${HOME}/Library/Caches/CocoaPods" rm -rf "`pwd`/Pods/" pod install 
+4
source

pod 'Google / Analytics', '~> 2.0'

This is fixed for Google Analytics.

0
source

All Articles