简体   繁体   中英

Unable to find a specification for 'Pod'

My goal is to make the "CleanroomLogger" available as a Pod. I haven't hosted/made a pod before and this is my first attempt. Pardon me if I ask a obvious question.

I have tried search this forum for potential answers and I haven't found that solves my problem in particular or may be I am something.

Below are links to the Podspec and the source for the Pod.

Link for the source code is: https://github.com/vikramhimanshu/CleanroomLogger Link for the Podspec: https://github.com/vikramhimanshu/CleanroomLoggerPodspec

platform :ios, '10.0'

source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/vikramhimanshu/CleanroomLoggerPodspec.git'

abstract_target 'Eify' do

    use_frameworks!

    pod 'CleanroomLogger', :git => 'https://github.com/vikramhimanshu/CleanroomLogger.git'

    target '<Name>' do

    end

    target '<Name2>' do

    end

    target '<Name3>' do

    end

end

Response on terminal:

pod update Update all pods Updating local specs repositories $ /usr/bin/git -C /Users/ht/.cocoapods/repos/master fetch origin --progress $ /usr/bin/git -C /Users/ht/.cocoapods/repos/master rev-parse --abbrev-ref HEAD master $ /usr/bin/git -C /Users/ht/.cocoapods/repos/master reset --hard origin/master HEAD is now at 4e310e8335f [Add] YTLiveStreaming 0.2.7 Analyzing dependencies Pre-downloading: CleanroomLogger from https://github.com/vikramhimanshu/CleanroomLoggerPodspec.git

[!] Unable to find a specification for 'CleanroomLogger'.


I tried without the source as well but its the same. I have a hunch I'm missing something very minor, but unable to find what!!

Your time and help is much appreciated here.

There is a great blog for creating Cocoapods. Follow this guide . Hope this will help you.

pod lib create will actually help give you a jump start by providing a standard directory structure with a bunch of boilerplate files necessary for a high-quality pod. pod lib create isn't the only way to create your pod, but it is the easiest.

The source line should be a spec repo, not a link to your source repo. See the instructions here for setting up a private spec repo.

Alternatively, you can test by pointing the pod directly to a podspec -

pod 'CleanroomLogger', :podspec => '/local/path/to/podspec'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM