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

后端 未结 12 1069
傲寒
傲寒 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:26

    1) Add and Open Podfile in Xcode instead of TextEdit or any other editor. (Syntax highlighting while viewing a pod file will simplify the process of finding syntax errors)

    2) Add project dependancies as follows in your Podfile

    def pods
      pod 'AFNetworking', '~> 2.6'
      pod 'ORStackView', '~> 3.0'
      pod 'SwiftyJSON', '~> 2.3'
    end
    

    3) Add above define pods in project target as follows

    target 'App_Target_Name' do
      pods
    end
    

提交回复
热议问题