Can't install PinterestSDK - ios

In my Podfile, I tried to install PinterestSDK using these pod lines.
pod 'PinterestSDK', '~> 1.0'
pod "PinterestSDK", :git => "https://github.com/pinterest/ios-pdk.git"
pod "PinterestSDK", :git => "git#github.com:pinterest/ios-pdk.git"
None of these works. This is the error.
[!] Error installing PinterestSDK
[!] Failed to download 'PinterestSDK': [!] /usr/local/bin/git clone https://github.com/pinterest/ios-pdk.git /var/folders/wt/nbn7rbwd5yz0fvmlvhs6ptfc0000gn/T/d20210506-3226-i5p1tn --template= --single-branch --depth 1
Cloning into '/var/folders/wt/nbn7rbwd5yz0fvmlvhs6ptfc0000gn/T/d20210506-3226-i5p1tn'...
remote: Repository not found.
fatal: repository 'https://github.com/pinterest/ios-pdk.git/' not found
As the error says, I guess my first question is, Is the library still active? I could not access also the Pinterest Github repository(https://github.com/pinterest/ios-pdk.git). I'm not sure if my internet provider is blocking the library or perhaps it's not available in public already.
Any help is greatly appreciated. Thanks.

So it seems that the library is deleted. For workaround, you can use this forked version.
pod 'PinterestSDK_5'

Related

Flutter: CocoaPods could not find compatible versions for pod "Firebase"

I have been working on update for a Flutter app that uses Firebase Firestore, once I finished the updated and starting to build it for IOS, I got the following error message which cause the build operation to fail:
[!] CocoaPods could not find compatible versions for pod "Firebase/Auth":
In snapshot (Podfile.lock):
Firebase/Auth (= 9.3.0)
In Podfile:
firebase_auth (from `.symlinks/plugins/firebase_auth/ios`) was resolved to 3.3.12, which depends on Firebase/Auth (= 8.14.0)
Note: The error message in the question says Firebase/Auth package but it also happened with other Firebase packages.
So what should I do to get over this problem?
i had the same error but the correct answer didnt work for me so i deleted the Pod.lock file and applied this steps.
so this The Solution worked for me:
Cocoa Pods Installation in M1
sudo gem install cocoapods
sudo gem install ffi
arch -x86_64 sudo gem install cocoapods -n /usr/local/bin
sudo gem install cocoapods -n /usr/local/bin
Install ffi
sudo arch -x86_64 gem install ffi
#update repo
arch -x86_64 pod install --repo-update
Flutter iOS builds
flutter clean
flutter build ios
my answer is based on this answer
Since you mentioned that you are using Firebase Firestore in your app, then you case might be the same of mine.
In the official docs of Firebase Firestore for Flutter, you will notice an Optional step that tells you to add a line in the Podfile to improve iOS & macOS build times by including the pre-compiled framework, like this one:
target 'Runner' do
...
# This is the mentioned line
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '8.15.0'
...
end
The solution for me was to update the tag number in the link in the line with the latest one from the repository on GitHub. Which repo? the one in the line.
At the dropdown that lets you select the branch you will find a tab for selecting a tag, just tap it and check the latest version number and use it in the line, e.g. The latest version for the time of this answer is 9.3.0, so the line would be:
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '9.3.0'
If it did not work, then you may totally ignore this optional step and remove this line from the Podfile. The build operation would take longer than before but it is better than a build failure.
What worked for me was running pod repo update from the XCode app directory ("ios/app" for capacitor apps) and then the pod install command.
If you are using such a line in your podfile
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '10.3.0'
then you need to check the repo's latest version from here to keep your pub.dev firebase packages compatible :
pre-compiled framework version

ReachabilitySwift can't be installed with CocoaPods

In my Podfile, I have:
pod 'ReachabilitySwift', '~> 3.0'
But when I run pod install, all the frameworks are setup correctly except ReachabilitySwift:
Installing ReachabilitySwift 3 (was 2.4)
[!] Error installing ReachabilitySwift
[!] /usr/bin/git clone https://github.com/ashleymills/Reachability.swift.git /var/folders/cn/1zzgfkjj5xq3hm3g4351087r0000gn/T/d20170922-5156-v06cm4 --template= --single-branch --depth 1 --branch v3
Cloning into '/var/folders/cn/1zzgfkjj5xq3hm3g4351087r0000gn/T/d20170922-5156-v06cm4'...
warning: Could not find remote branch v3 to clone.
fatal: Remote branch v3 not found in upstream origin
With this GitHub link, I found a recommended solution:
Please add a
s.pod_target_xcconfig = {
'SWIFT_VERSION' => '3.0'
}
to the podspec file.
Otherwise, there will be an error after each pod install.
But I don't know where to find the podspec file and in what place to insert this string.
You don't have to edit the podspec file manually, that would involve forking the project.
The project's podspec file references a wrong tag, you should specify the correct tag and use that until the podspec file is fixed.
From a GitHub Issue:
Podspec is still looking for the old v3 tag, for now manually specify the repo and tag will fix:
pod 'ReachabilitySwift', :git => 'https://github.com/ashleymills/Reachability.swift.git', :tag => 'v3.0'

Getting error when install libraries from cocoapods: library not found for -lPods

Hello guy's I know this question asked many times but no one is solved my problem. I am installing some libraries using cocoapods . I am opening xcworkspace and run my project but iam getting this error.
**ld: library not found for -lPods-Qboy
clang: error: linker command failed with exit code 1 (use -v to see invocation)**
I want to install these libraries:
pod 'Quickblox-WebRTC', '~> 2.2'
pod 'QuickBlox'
pod 'SVProgressHUD'
pod 'TWMessageBarManager', '~> 1.7.2'
Production pod
pod 'QMCVDevelopment', :git => 'git#github.com:QuickBlox/QMChatViewController-ios.git', :commit => '5bb608405c89bbb3b0189a4e188098f27c2af72a'
For development pods
pod 'QMCVDevelopment', :path => '../../QMChatViewController-ios/'
Production pod
pod 'QMServicesDevelopment', :git => 'git#github.com:QuickBlox/q-municate-services-ios.git', :commit => '84e55c43f028589d9f6304b1224bcdc62926b619'
I spent 2 days on this error and finally posted question. Please help to resolve this. Thanks
This can be the reason after installing POD you need to open projectname.xcworkspace workspace instead of project.

How to install Google Api with cocoa pod

I'm not able to install google api with cocoa pods
This is my pod:
platform :ios, '8.0'
use_frameworks!
target 'testGoogleFacebook' do
pod 'Google-API-Client', '~> 1.0'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
end
It install Facebook perfect, but with Google I get this:
[!] Error installing Google-API-Client
[!] /usr/local/bin/svn export --non-interactive --trust-server-cert --force http://google-api-objectivec-client.googlecode.com/svn/trunk/ -r 422 /var/folders/kk/fyg7f_cx1pxfxh6p377c48rw0000gn/T/d20150907-5479-kgjbk4
How can install it? I only need to log in with Google with Gmail scope
Thanks a lot!
Check your SVN version
svn --version
Mine was 1.6.9
Ended up removing the current version
rm '/usr/local/bin/svn'
Then installing a newer version
brew install subversion
It seems to work with the one that was installed 1.8.13
I found a discussion about the SDK and it seems Google-API-Client was never an official pod.
What you're looking for is the GoogleAPIClient, which was mentioned here.

Error on "sudo pod install"

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

Resources