10

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'
atulkhatri
  • 10,896
  • 3
  • 53
  • 89

2 Answers2

9

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.

Killian
  • 936
  • 3
  • 14
  • 28
  • That did not work for me unfortunately. Can OP tell/validate the answer or if he found another way to solve his problem ? – Chris R. Dec 26 '16 at 12:22
1

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

atulkhatri
  • 10,896
  • 3
  • 53
  • 89
  • I tried a lot of different solutions. This one was the only that worked (Working in React Native v: .60+) Thank you – Aluminium22 Jul 16 '21 at 15:47