iosxcodegithubcocoapodsxcode10.1

No podspec found for `ActionCableClient`. Pod installation issue


I'm trying to install the pod ActionCableClient to my project but after pod installation, I was getting many errors due to which I was unable to build. So, I tried downloading their sample and run the project after installing the pod and that worked well. When I checked their pod file it also had a path mentioned. So, I tried the same Podfile contents to my project, below is how my Podfile looks now.

source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!

def common_pods
  pod 'ActionCableClient', :path => '../'
  pod 'SwiftyJSON'
  pod 'SnapKit'
end

def common_test_pods
  pod 'Quick', '~> 0.9.3'
  pod 'Nimble', '3.2.0'
end

target 'ActionCableTest' do
  common_pods
end

But when I try to do a pod install it's giving me the error

No podspec found for ActionCableClient in ../

But strange enough it works well for the sample app provided by them. Am I missing something here? Do I need to add anything else in project settings? Any help is appreciated


Solution

  • If ActionCableTest is your main target, check this;

    use_frameworks!
    
    def common_pods
      pod "ActionCableClient"
      pod 'SwiftyJSON'
      pod 'SnapKit'
    end
    
    def common_test_pods
      pod 'Quick', '~> 0.9.3'
      pod 'Nimble', '3.2.0'
    end
    
    target 'ActionCableTest' do
      common_pods
    end
    

    If you want set specific target

     pod 'ActionCableClient', :git => 'https://github.com/danielrhodes/Swift-ActionCableClient.git'
    

    If you want set specific target with tag

     pod 'ActionCableClient', :git => 'https://github.com/danielrhodes/Swift-ActionCableClient.git', :tag => 'v0.2.3'
    

    If you want set path

    pod 'ActionCableClient', :path => 'RawPods/'
    

    and RawPods folder contain ActionCableClient folder. After that ActionCableClient folder contain .podspec file