Install cocoapods with command
sudo gem install -n /usr/local/bin cocoapods
create new Xcode project.
create new pod file with command
pod init
Fill Pod file:
target 'TestApp' do
pod 'VK-ios-sdk'
pod 'SDWebImage', '~>3.8'
end
Trying to install pods.
Install all pod dependencies correctly.
pod install
Analyzing dependencies
[!] Unable to find a specification for `VK-ios-sdk`
Also I have checked list of available pods:
pod list
120301 0.1.8
1210 0.0.9
12306DeveCocoa 0.0.4
19WhereSVProgressHUD 1.0.1
1BAIDUSDKSYDemo 0.0.5
[...]
Countly 16.02.01
MaterialDesignColorObjC 1.0
MaterialDesignSymbolObjC 1.2
Vespucci 0.4.13
3538 pods were found
CocoaPods : 1.0.1
Ruby : ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin15]
RubyGems : 2.6.6
Host : Mac OS X 10.11.5 (15F34)
Xcode : 7.3 (7D175)
Git : git version 2.6.4 (Apple Git-63)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ bb8684ffab66429c523fc373e0407080d90a4493
Executable Path: /usr/local/bin/pod
cocoapods-deintegrate : 1.0.0
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.0.0
cocoapods-trunk : 1.0.0
cocoapods-try : 1.0.0
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
target 'Where Is My Friends' do
pod 'VK-ios-sdk'
pod 'SDWebImage', '~>3.8'
end
Could you please help me with that?
can you try running pod install --repo-update?
Hi,
Unfortunately, the same result:
Updating local specs repositories
Analyzing dependencies
[!] Unable to find a specification for `VK-ios-sdk`
[!] CocoaPods was not able to update the `master` repo. If this is an unexpected issue and persists you can inspect it running `pod repo update --verbose`
And here --verbose log:
pod repo update --verbose
Updating spec repo `master`
$ /usr/bin/git pull --ff-only
error: Your local changes to the following files would be overwritten by merge:
Specs/ROKO.Mobi/1.8.1/ROKO.Mobi.podspec.json
Please, commit your changes or stash them before you can merge.
Aborting
Updating bb8684f..23d4083
[!] CocoaPods was not able to update the `master` repo. If this is an unexpected issue and persists you can inspect it running `pod repo update --verbose`
'Specs/ROKO.Mobi/1.8.1/ROKO.Mobi.podspec.json,
I'm do not use this repo.
Im even do not know what this pod do.
try (cd ~/.cocoapods/repos/master && git reset --hard) && pod repo update --verbose ?
after this commands 'pod list' return to me
20358 pods were found
And now all pods in my pod file installs
Thank you.
Most helpful comment
try
(cd ~/.cocoapods/repos/master && git reset --hard) && pod repo update --verbose?