Pod install displaying error in cocoapods version 1.0.0.beta.1

后端 未结 12 1025
傲寒
傲寒 2020-12-07 10:03

My podfile was working but after updating to cocoapods version 1.0.0.beta.1

pod install displays following error

MacBook-Pro:iOS-TuneIn home$ pod ins         


        
相关标签:
12条回答
  • 2020-12-07 10:39

    you must add target 'your target' do and end around you pod like below.

    target 'your target' do
    pod 'AFNetworking', '2.6.3'
    pod 'MBProgressHUD', '~> 0.9.1'
    pod 'PDKeychainBindingsController', '~> 0.0.1'
    end
    

    plus: You may be need remove the pods dir, Podfile.lock and xcworkspace file, run the pod install again.

    0 讨论(0)
  • 2020-12-07 10:40
    platform :ios, '8.0'
    target 'YourTargetName' do
    
      ALL PODS HERE
    
    end
    

    open terminal, go to project folder and enter code

    pod update
    
    0 讨论(0)
  • 2020-12-07 10:41

    I got the same issue today. For mitigation, I unintall cocoapod, then install again version 0.39.

    here is the link how to uninstall: https://superuser.com/questions/686317/how-to-fully-uninstall-the-cocoapods-from-the-mac-machine

    This answer does not fix the root cause, but can get you unblocked. I don't have enough reputation to leave comments, so I put an answer here to unblock you.

    0 讨论(0)
  • 2020-12-07 10:44

    for New version of cocoapods i.i 1.0.1

    pod 'SlideMenuControllerSwift' pod 'SDWebImage' pod 'SearchTextField'

    I was getting error:

    The dependency SlideMenuControllerSwift is not used in any concrete target. The dependency SDWebImage is not used in any concrete target. The dependency SearchTextField is not used in any concrete target.

    than i changed it to

    target "YOUR_PROJECT_NAME" do

     pod "YOUR_POD"
    

    end

    than it worked

    0 讨论(0)
  • 2020-12-07 10:45

    I have the same problem, and even I changed to

    target "TargetName" do pod 'Alamofire', '~> 3.1.4' pod 'SwiftyJSON', '~> 2.3.2' end

    It seems has some cache problem, it always read old version of PodFile, even I remove PodFile, the same error show up. It's weird.

    However, when I open a new terminal , running pod install, it works.

    0 讨论(0)
  • 2020-12-07 10:50

    I was this operation in the podfile:

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

    platform :ios, '8.0'

    target "targetprojectname" do

    pod "AFNetworking"

    end

    0 讨论(0)
提交回复
热议问题