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'
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.
Just to update everyone on this, I followed these steps to fix this issue:
Deintegrate cocoapod
Clear all cache
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
Related
I have this error on Xcode.
I know this question has already been asked several times but I have tried everything.
sudo gem install cocoapods -n/usr/local/bin
pod deintegrate
pod clean
pod install --repo-update
Clean DerivedData and my project isn't on iCloud.
Please help me.
After pod deintegrate, remove GoogleAppMeasurement.framework from the Build Settings.
It should not be linked when GoogleAppMeasurementWithoutAdIDSupport is used
Recently upgraded to XCode 8.1 trying to install Alamofire pod for a new project. Podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
target 'app' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for app
pod 'Alamofire',
:git => 'https://github.com/Alamofire/Alamofire.git',
:branch => 'swift3'
end
And my terminal responds:
image
so what can I do?
--Update--
also tried pod 'Alamofire', '~> 4.0'
here is the result
I did the pod repo update it doesn't do anything at all
Edit your podFile as below and just install the pods using pod install --verbose command if still error exists then update your repo with pod repo update then try again.
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
target 'app' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for app
pod 'Alamofire'
end
As per the discussion here,
You need to use
pod 'Alamofire', '~> 4.0'
In your pod file
I faced the same problem when i updated the mac os from el capitan to sierra and installed new version of Xcode.
I updated the cocoapod and still, was facing the same problem.
I found a solution by completely removing cocoapod from root directory and installing it again.
To remove the cocoapod completly use this in terminal
$ sudo rm -fr ~/Library/Caches/CocoaPods/
$ sudo rm -fr ~/.cocoapods/repos/master/
and then install the cocoapod again
$ gem install cocoapods
I am unable to find podSpec for any pod listed in my Podfile. My Podfile looks like this:
use_frameworks!
target 'MyTargetName' do
pod 'Gloss'
pod 'IQKeyboardManagerSwift'
pod 'ICViewPager'
pod 'SkyFloatingLabelTextField'
pod "KCFloatingActionButton"
pod "TSMessages"
end
Initially I got an error:
[!] Unable to find a specification for `IQKeyboardManagerSwift`
I've tried removing IQKeyboardManagerSwift, but then I get another error:
[!] Unable to find a specification for `ICViewPager`
I've checked both of those projects, and they exist on cocoapods.org, and podspec exists on github as well as the pod repo.
Everything started when I updated to Xcode 8.0 and Swift 3.0. Any idea what has gone wrong here?
EDIT:
I managed ti find a workaround that fixed issue related to downloading cocoapods:
use_frameworks!
target 'MyTargetName' do
pod 'Gloss'
pod 'IQKeyboardManagerSwift', :git => 'https://github.com/hackiftekhar/IQKeyboardManager'
pod 'ICViewPager', :git => 'https://github.com/iltercengiz/ICViewPager'
pod 'SkyFloatingLabelTextField’, :git => 'https://github.com/Skyscanner/SkyFloatingLabelTextField'
pod "KCFloatingActionButton”, :git => 'https://github.com/kciter/KCFloatingActionButton'
pod "TSMessages”, :git => 'https://github.com/KrauseFx/TSMessages'
end
Do you have the source at the top of your Podfile?
source 'https://github.com/CocoaPods/Specs.git'
Do these:
$ sudo rm -fr ~/Library/Caches/CocoaPods/
$ rm -fr ~/.cocoapods/repos/master/
$ sudo rm -fr Pods/
$ sudo gem install cocoapods
$ pod setup
Then run $ pod install .. Hopefully It works
I am trying to install Cocoapods, and it kind of hang while downloading AlamoFire!
Anyone have faced similar issue?
1) Open terminal
2) sudo gem install cocoapods
sudo gem install -n /usr/local/bin cocoapods
3) pod setup
4) create a xcode project
5) cd "path to your project root directory"
6) pod init
7) open -a Xcode Podfile
8) pod 'Alamofire', '~> 3.4'
It just feel like hanged and not sucessfull even after long wait!
Thanks in Advance!!!
Use this one in your pod file ->
**source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!
target 'Pod DemoTests' do
pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire'
end**
this will solve your problem ..
pod Installation
1.sudo gem install cocoapods
2.pod init
3.import needed framework in podfile
4.pod install
5.open with workspace.
I already have one project working with a podfile.
I wanted to add a Podfile on an old project but I got this error on
sudo pod install
Error:
Resolving dependencies of `./Podfile'
Updating spec repositories
[!] git pull
Updating 35bbbaf..8b42708
error: The following untracked working tree files would be overwritten by merge:
AFXAuthClient/1.0.4/AFXAuthClient.podspec
Please move or remove them before you can merge.
Aborting
It's weird because I don't use AFXAuthClient on my project, and I never used it.
Here's my Podfile:
platform :ios, '5.0'
pod 'TTTAttributedLabel', '~> 1.6.0'
pod 'ECSlidingViewController', '~> 0.9.0'
I tried to made without success:
gem install cocoapods
pod setup
NB: I get the same error with pod setup
From the command line run rm -rf ~/.cocoapods
Then run pod install again. You shouldn't need the sudo.
This look like it's caused because there was a change to a spec and it's conflicting with running a git pull
If you're seeing an error like this, it might be because CocoaPods had to force-push their repo. They suggest:
pod repo remove master
pod setup