Search code examples
terminalcocoapodspodfile

POD FILE INSTALL OPTIONS


Terminal NEW TRY

cocoapods was already installed on computer, but I figured I'd try again.

attached is the newest image of my terminal, still showing same problem.

I'm running iOS High Sierra \ Version 10.13.5.

So sometimes when I install podfile it works, the others times I get this:

usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 file2
       install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 ... fileN directory
       install -d [-v] [-g group] [-m mode] [-o owner] directory ...

and I'm just confused. I dont understand, what commmand can I run for it to just install the pods that I want? Cocoapods is already installed, and I'm going through the process correctly.

  • cd Desktop
  • LS
  • cd (folder with developments)
  • cd Folder with master file
  • cd Master-File-iOS11
  • pod init (creates pod file
  • open -a Xcode podfile
  • edit the code and type in the pods I want
  • save it
  • go back to terminal
  • type in install podfile and then I get that whole options.. ????

Solution

  • first create pod file

    • pod init

    after creating and editing podfile, type:

    • pod install

    UPDATE

    This is the podfile. I have added only two pods just for a short example. You can add whatever you want

     source 'https://github.com/CocoaPods/Specs.git'
    platform :ios, ‘11.0’
    use_frameworks!
    
    target ‘your project namne’ do
        pod 'Alamofire'
        pod 'Kingfisher'
    end