I forked CBZSplashView and I'd like to use it in my own project.
To be sure that the problem doesn't come from me, I create a Xcode project from scratch.
My project Podfile contains one line :
pod 'CBZSplashView', :git=> 'git#github.com:rvirin/CBZSplashView.git', :branch => 'remy'
When I run pod install or pod update I've got the original version of the pod - not my fork.
What I'm doing wrong?
The :git parameter overrides the source of the podspec.
I tried to modify the podspec to indicate that the source files are now on my repository, but didn't work either.
Log of pod update --verbose:
-> Pre-downloading: `CBZSplashView` from `git#github.com:rvirin/CBZSplashView.git`, tag `1.0.1`
> GitHub download
$ /usr/bin/git config core.bare
true
$ /usr/bin/git config core.bare
true
> Updating cache git repo (/Users/rvi/Library/Caches/CocoaPods/GitHub/8520768890e6fa2ea91b3d9e8bb9f2afbb31ab60)
$ /usr/bin/git remote update
Fetching origin
> Cloning to Pods folder
$ /usr/bin/git clone /Users/rvi/Library/Caches/CocoaPods/GitHub/8520768890e6fa2ea91b3d9e8bb9f2afbb31ab60 /Users/rvi/Devs/Lima/iOS/Lima/Pods/CBZSplashView
Cloning into '/Users/rvi/Devs/Lima/iOS/Lima/Pods/CBZSplashView'...
done.
$ /usr/bin/git fetch origin tags/1.0.1 2>&1
From /Users/rvi/Library/Caches/CocoaPods/GitHub/8520768890e6fa2ea91b3d9e8bb9f2afbb31ab60
* tag 1.0.1 -> FETCH_HEAD
$ /usr/bin/git reset --hard FETCH_HEAD
HEAD is now at 56d4dc7 change branch
$ /usr/bin/git checkout -b activated-pod-commit 2>&1
Switched to a new branch 'activated-pod-commit'
Any help is appreciate :)
$ pod --version
0.33.1
You can use following code to install Github repository to use as CocoaPods and paste this in your Podfile :
pod 'CBZSplashView', :git => 'https://github.com/rvi/CBZSplashView.git', :branch => 'master'
Related
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'
I have problem with running app on ios that was cloned from github i tried to install pod put it giving me this error.
[!] Error installing MaterialControls
[!] /usr/local/bin/git clone https://github.com/fpt-software/Material-Controls-For-iOS.git /var/folders/0s/r4qtkcpj5wsbp5qrn3x224x00000gn/T/d20200819-21909-1j0u8aj --template= --single-branch --depth 1 --branch v1.2.2
Cloning into '/var/folders/0s/r4qtkcpj5wsbp5qrn3x224x00000gn/T/d20200819-21909-1j0u8aj'...
remote: Repository not found.
fatal: repository 'https://github.com/fpt-software/Material-Controls-For-iOS.git/' not found
Let's try to run pod install inside your IOS folder
This project does not exist anymore, so that's the probleme. You can try to open a new project and copy the dart files, if you still have them.
Here is a part of logs from cn1 build server
Executing: /usr/local/bin/pod install Analyzing dependencies
[!] Unable to satisfy the following requirements:
- `BraintreeDropIn` required by `Podfile`
Specs satisfying the `BraintreeDropIn` dependency were found, but they required a higher minimum deployment target.
[!] `<PBXFrameworksBuildPhase UUID=`0F634E9E18E9ABBC002F3D1D`>` attempted to initialize an object with an unknown UUID. `0F634EA418E9ABBC002F3D1D` for attribute: `files`. This can be the result of a merge and the unknown UUID is being discarded.
[!] `<PBXResourcesBuildPhase UUID=`0F634E9F18E9ABBC002F3D1D`>` attempted to initialize an object with an unknown UUID. `0F634EAD18E9ABBC002F3D1D` for attribute: `files`. This can be the result of a merge and the unknown UUID is being discarded.
Failed to exec cocoapods. Trying to update master repo...
Executing: /usr/local/bin/pod repo update Updating spec repo `dwild`
$ /usr/bin/git -C /Users/administrator/.cocoapods/repos/dwild fetch origin --progress
$ /usr/bin/git -C /Users/administrator/.cocoapods/repos/dwild rev-parse --abbrev-ref HEAD
master
$ /usr/bin/git -C /Users/administrator/.cocoapods/repos/dwild reset --hard origin/master
HEAD is now at f0a287f Try even bigger version
Updating spec repo `dwild-1`
$ /usr/bin/git -C /Users/administrator/.cocoapods/repos/dwild-1 fetch origin --progress
$ /usr/bin/git -C /Users/administrator/.cocoapods/repos/dwild-1 rev-parse --abbrev-ref HEAD
master
$ /usr/bin/git -C /Users/administrator/.cocoapods/repos/dwild-1 reset --hard origin/master
HEAD is now at f0a287f Try even bigger version
Updating spec repo `googlemaps`
$ /usr/bin/git -C /Users/administrator/.cocoapods/repos/googlemaps fetch origin --progress
$ /usr/bin/git -C /Users/administrator/.cocoapods/repos/googlemaps rev-parse --abbrev-ref HEAD
master
$ /usr/bin/git -C /Users/administrator/.cocoapods/repos/googlemaps reset --hard origin/master
HEAD is now at 97abfa7 backgroundColors fix (#163)
Updating spec repo `littlemonkeyltd`
$ /usr/bin/git -C /Users/administrator/.cocoapods/repos/littlemonkeyltd fetch origin --progress
$ /usr/bin/git -C /Users/administrator/.cocoapods/repos/littlemonkeyltd rev-parse --abbrev-ref HEAD
master
$ /usr/bin/git -C /Users/administrator/.cocoapods/repos/littlemonkeyltd reset --hard origin/master
HEAD is now at e7db135 update podspec
Updating spec repo `master`
$ /usr/bin/git -C /Users/administrator/.cocoapods/repos/master fetch origin --progress
remote: Counting objects: 495, done.
than I setup build hint ios.deployment_target to 8.0 and I got error just little bit different from the previous one:
Executing: /usr/local/bin/pod init Executing: /usr/local/bin/pod install Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "BraintreeDropIn":
In Podfile:
BraintreeDropIn
Specs satisfying the `BraintreeDropIn` dependency were found, but they required a higher minimum deployment target.
Failed to exec cocoapods. Trying to update master repo...
Executing: /usr/local/bin/pod repo update Updating spec repo `dwild`
$ /usr/bin/git -C /Users/administrator/.cocoapods/repos/dwild fetch origin --progress
$ /usr/bin/git -C /Users/administrator/.cocoapods/repos/dwild rev-parse --abbrev-ref HEAD
master
$ /usr/bin/git -C /Users/administrator/.cocoapods/repos/dwild reset --hard origin/master
HEAD is now at f0a287f Try even bigger version
Updating spec repo `dwild-1`
$ /usr/bin/git -C /Users/administrator/.cocoapods/repos/dwild-1 fetch origin --progress
$ /usr/bin/git -C /Users/administrator/.cocoapods/repos/dwild-1 rev-parse --abbrev-ref HEAD
master
$ /usr/bin/git -C /Users/administrator/.cocoapods/repos/dwild-1 reset --hard origin/master
HEAD is now at f0a287f Try even bigger version
Updating spec repo `master`
$ /usr/bin/git -C /Users/administrator/.cocoapods/repos/master fetch origin --progress
remote: Counting objects: 758
remote: Counting objects: 1972, done.
so right now i don't really know where the problem could be. It does not look like increasing deployment target could help because I run build for target 10.0 and I got same error.
This is a regression in the current braintree integration due to changes in the cocoapod from braintree. I've had it on my fix list but I've been a bit busy so I'll try to do that over the weekend and post an update here when I'm done.
There are two potential fixes:
Currently the pod doesn't specify a version which is why this broke. Braintree released an update and everything stopped working. I can just specify a slightly older version and it will start working again.
We can update to use the new xcode 9.2 support - I think that's the way forward but it's new and I have stability concerns
I'll probably go with the first approach for now.
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'
I want to install the GoogleMap SDK for iOS in my project. But when I installed with pod install it got an error.
[!] Unable to find a specification for `GoogleMaps`
pod repo remove master ; pod setup doesn't help. pod repo update --verbose
Updating spec repo `.git`
$ /usr/bin/git -C /Users/admin/.cocoapods/repos/.git fetch origin
From https://github.com/CocoaPods/Specs
42723a4..830f47f master -> origin/master
$ /usr/bin/git -C /Users/admin/.cocoapods/repos/.git rev-parse --abbrev-ref
HEAD
HEAD
$ /usr/bin/git -C /Users/admin/.cocoapods/repos/.git reset --hard origin/HEAD
fatal: ambiguous argument 'origin/HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
[!] CocoaPods was not able to update the `.git` repo. If this is an unexpected issue and persists you can inspect it running `pod repo update --verbose`
My podfile:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'Interests' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Interests
pod 'GoogleMaps'
target 'InterestsTests' do
inherit! :search_paths
# Pods for testing
end
target 'InterestsUITests' do
inherit! :search_paths
# Pods for testing
end
end
You need to specify the Specs repo at the top of the Podfile as follows:
source 'https://github.com/CocoaPods/Specs.git'
I can see this is the case because of the error you have listed:
Updating spec repo `.git`
[!] CocoaPods was not able to update the `.git` repo. If this is an unexpected issue and persists you can inspect it running `pod repo update --verbose`
Using this approach of reinstalling via brew which fixed the issue.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
sudo gem uninstall cocoapods
brew install cocoapods --with-brewed-curl --with-brewed-openssl