Cocoapods not resolving through Artifactory - cocoapods

Cocoapods not resolving through Artifactory - project not showing up in the remote-cache
I have been following all the instructions in the screencat - Set me up - https://www.youtube.com/watch?v=6eiL3IaQG3Q
I have gem installed cocoapods and cocopods-art.
Added the 'Custom Base URL' = http://localhost:8081/artifactory
Added the following line to have Cocoapods resolve to artifactory:
pod repo-art add c-remote "http://localhost:8081/artifactory/api/pods/c-remote"
Added the following to my Podfile:```
vi Podfile
plugin 'cocoapods-art', :sources => [
'c-remote'
]
target 'Pods Updater' do
use_frameworks!
pod 'RxSwift', '4.4.2'
pod 'RxCocoa', '4.4.2'
pod 'Highlightr', '2.1.0'
end
Ran: pod install
Pod installation complete! There are 3 dependencies from the Podfile and 4 total pods installed.
Yet I do not see the projects in Artifactory. I tried several times. See image below.
Project not showing up

Try with Artifactory running on your Mac (localhost) and Cocoapods installed on the same machine (Mac).

Related

error when installing a pod file Cocoapods version 1.9.1

Podfile Contents
platform :ios, '11.0'
target 'AVWXKit' do
use_frameworks!
pod 'AVWXKit'
end
Terminal Input: pod install
Error Message:
You have either:
* out-of-date source repos which you can update with `pod repo update`
or with `pod install --repo-update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
I have tried repo update to no avail. Any help appreciated
Using pod version 1.9.1
It seems that pod was never pushed to trunk: when I do pod search AVWXKit I get:
Unable to find a pod with name, author, summary, or description matching AVWXKit
To work around that, get the pod directly from its repo using:
pod 'AVWXKit', :git => 'https://github.com/JanC/AVWXKit'

Unable to satisfy requirements when specifying version in podfile

I'm using the Cocoapods app. When trying to install the current Alamofire, I get the following error:
Analyzing dependencies
[!] Unable to satisfy the following requirements:
- `Alamofire (~> 4.4)` required by `Podfile`
None of your spec sources contain a spec satisfying the dependency: `Alamofire (~> 4.4)`.
You have either:
* out-of-date source repos which you can update with `pod repo update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default
This is my podfile:
project 'MyApp.xcodeproj'
# Uncomment the next line to define a global platform for your project
platform :ios, '10.0'
target 'MyApp' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for MyApp
pod 'Alamofire', '~> 4.4'
end
If I remove the version and just use pod 'Alamofire', it installs version 4.0.1. Why?
The issue is as per the last line of the log.
You need to run pod repo update
There appears to be an option in the app in the menu Specs Repos that has an update button for me. However this does not seem to work.
Running the command line then allowed mre to run Build->Install from the Cocoapods app
This might be happening due to the cocoa pod version required by the new almofire version is higher than what u have installed in your system. Please check version of ypu pod by pod --version in command line , if it is less than 1.0 update pod spec , you can find the steps here .https://guides.cocoapods.org/using/getting-started.html
Your new pod will be installed. Also the when u don not specify a version in your pod file than cocoa pods itself selects the latest version it supports and install it .Thats why your almofire was getting updated to 4.0.1.,Hope this helps you.

How i can update my cocoa repo?

Im trying to use the version > 1.24 of Lock (https://github.com/auth0/Lock.iOS-OSX), but my cocoa repo has not available this version. I execute pod search Lock and i see the follow info:
Lock (1.13.0)
A library that uses Auth0 for Authentication with Native Look & Feel
pod 'Lock', '~> 1.13.0'
- Homepage: https://github.com/auth0/Lock.iOS-OSX
- Source: https://github.com/auth0/Lock.iOS-OSX.git
- Versions: 1.13.0, 1.12.1, 1.12.0, 1.11.3, 1.11.2, 1.11.1
The version in the repo is 1.27, and my repo is old. I try to update using pod repo update but still unavailable
¿Someone can help me?
Im trying to use this podfile:
# Uncomment this line to define a global platform for your project
platform :ios, '10.0'
target 'TalkClassTest' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for TalkClassTest
target 'TalkClassTestTests' do
inherit! :search_paths
pod 'Lock', '~> 1.24'
end
end
but when i execute pod install i obtain this erros:
[!] Unable to satisfy the following requirements:
- `Lock (~> 1.24)` required by `Podfile`
None of your spec sources contain a spec satisfying the dependency: `Lock (~> 1.24)`.
You have either:
* out-of-date source repos which you can update with `pod repo update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
MacBook-Air-de-Randall:TalkClassTest Randal$
thank to everyone, the solution applied is execute the follow commands: pod repo remove master and after pod setup

Cannot install Alamofire 4.0 in Xcode 8.0 Using CocoaPods

I need to upgrade one project to Swift 3.0, that has some libraries by Cocodpods.
So, I've removed all links related with Cocoapods and recreate pod file using pod init and upgrade some version of library such as AlamorFire.
But pod install said
[!] Unable to satisfy the following requirements:
- `Alamofire (~> 4.0)` required by `Podfile`
None of your spec sources contain a spec satisfying the dependency: `Alamofire (~> 4.0)`.
You have either:
* out-of-date source repos which you can update with `pod repo update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
I've updated deployment Target to 9.0 and using cocoapod 1.1.0
For test, I've created new project and added only Alamofire, but the result is same.
If you have some experience, please help me.
try sudo gem install cocoapods --pre
the pod file should look like
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!
target 'YourAPP' do
pod 'Alamofire', '~> 4.0'
pod 'SwiftyJSON', :git => 'https://github.com/acegreen/SwiftyJSON.git', :branch => 'swift3'
pod 'NetReachability'
end
Since you have an outdated pod repo, pod install getting failed. First of all you have to update your pod master repo before running pod install. Follow the steps given to update your pod repo and resolve the pod error.
Go to Cocoa Pods repo folder (~/.cocoapods/repos) and delete master folder
Run pod update on terminal. This will take several minutes to update pod repo.
When update get finished, run pod install (if required).
Hope this would be useful for those who are getting similar error :)

Can't get cocoapods to work with Xcode 7.2 beta (7C46t)

Getting this error
ld: framework not found Alamofire
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm trying cocoapods for the first time this morning.
sudo gem install cocoapods
pod setup
My Podfile looks like this:
xcodeproj '/Users/adamek/Development/xCode/Swift_2015/Foody16/Foody16.xcodeproj'
platform :ios, '8.0'
use_frameworks!
pod 'SwiftyDropbox', :git => 'git#github.com:dropbox/SwiftyDropbox.git', :tag => '0.5'
pod install returns this:
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Using Alamofire (2.0.2)
Using SwiftyDropbox (0.5)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 2 dependencies from the Podfile and 2 total pods installed.
That part looks good, but I get the following when I try to build my app.
ld: framework not found Alamofire
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've also tried pod repo remove master --verbose and then pod install again, still no luck. Any suggestions?
Your podfile is not right. I am suggesting you some steps. Carefully follow them
sudo gem install cocoapods.
pod init
open Xcode -a podfile
Your podfile should look like this:
use_frameworks!
platform :ios, ‘8.0’
pod 'SwiftyDropbox'
pod 'Alamofire'
Save the podfile
remove all the local dependencies mentioned in your podfile from target folder.
change to #import <Alamofir/Alamofir.h>
use $inherited in your linker Search Path, Build Settings.
Now do pod install, and then pod update.
these steps should resolve your problem. if any other error comes, Comment on this post.

Resources