Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

File not found- GoogleUtilities/Libraries/libGTM_NSData+zlib.a

Getting file not found error for GoogleUtilities/Libraries/libGTM_NSData+zlib.a.

Below is some Google library related content in my Podfile

pod 'GoogleAnalytics', '~> 3.14.0'
pod 'Google/CloudMessaging', '~> 1.1.0'
pod 'Google/SignIn'
pod 'GoogleAds-IMA-iOS-SDK'
like image 670
atulkhatri Avatar asked Apr 01 '16 09:04

atulkhatri


2 Answers

Just to update everyone on this, I followed these steps to fix this issue:

  1. Deintegrate cocoapod
  2. Clear all cache
  3. Reinstall cocoapod

Below are some of the commands that will do the trick:

rm -rf ~/Library/Caches/CocoaPods
rm -rf Pods
rm -rf ~/Library/Developer/Xcode/DerivedData/*
pod deintegrate
pod setup
pod install

Thanks

like image 157
atulkhatri Avatar answered Oct 18 '22 09:10

atulkhatri


If you go to your target's Pod xcconfig, i.e Pods-Development.debug.xcconfig, near the end of the file there is the entry -force_load $(PODS_ROOT)/GoogleUtilities/Libraries/libGTM_NSData+zlib.a.

Getting rid of that fixes the build error. I've not come across any other issues with this as a fix yet. Not sure why this is being added in.

like image 21
Killian Avatar answered Oct 18 '22 09:10

Killian