jfrog / cocoapods-art

CocoaPods Plugin to work against Artifactory Repository
Apache License 2.0
58 stars 27 forks source link

Unable to find a specification for pods that exist in remote #55

Open kyledold opened 3 years ago

kyledold commented 3 years ago

I have cocoapods v1.10.1 and cocoapods-art v1.0.5 installed.

My pod file looks like this:

platform :ios, '12.0'

plugin 'cocoapods-art', :sources => [
    'cocoaPods-remote'
]

target 'MyApp' do
    inhibit_all_warnings!
    use_frameworks!

    pod 'Adjust', '4.28.0'
    pod 'AdobeMobileSDK', '4.20.0'
    pod 'Firebase/Core', '6.34.0'
    pod 'Firebase/RemoteConfig', '6.34.0'
    pod 'Firebase/Messaging', '6.34.0'
    pod 'Firebase/Crashlytics', '6.34.0'
    pod 'Firebase/Analytics', '6.34.0'
    pod 'GoogleAppMeasurement', '6.9.0'

end

I have only 1 remote repo ("cocoaPods-remote") where all my dependencies should pull from.

$ pod repo

0 repos

$ pod repo-art

cocoaPods-remote
- URL: https://artifactory.[redacted]/artifactory/api/pods/cocoaPods-remote
- Path: /Users/[redacted]/.cocoapods/repos-art/cocoaPods-remote/

1 repo

The "cocoaPods-remote" repo has been installed locally and when I run the pod install --repo-update command I get the following error:

$ pod install --repo-update
/Users/[redacted]/.cocoapods/repos-art/cocoaPods-remote/.artpodrc
Analyzing dependencies
/Users/[redacted]/.cocoapods/repos-art/cocoaPods-remote/.artpodrc
[!] Unable to find a specification for `Adjust (= 4.28.0)`

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.

I've tried multiple different versions of CocoaPods and still same issue. I've following the documentation in artifacory about setting this up but it hasn't changed anything. I'm not sure what else to try, any suggestions would be helpful.

willamssouzazup commented 2 years ago

I have the same problem. Did you have any solution @kyledold?

kyledold commented 2 years ago

@willamssouzazup I did manage to fix this but it was a year ago so I've completely forgotten how I did it unfortunately.

Can you try run pod env and see if anything strange shows for "Repositories"?