Error running pod install with swift

后端 未结 5 1412
逝去的感伤
逝去的感伤 2020-12-13 06:40

I followed the instruction from Cocoapods.

Below is my Podfile:

platform :ios, \'8.2\'

pod \'SwiftyJSON\', \'~> 2.1\'
pod \'SwiftSpinner\', \'~&         


        
5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-13 07:06

    as it written in Podfile it says uncomment use_frameworks! is your are using Swift so all you have to do uncomment this line and all works just fine

    # Uncomment this line to define a global platform for your project
    # platform :ios, '8.0'
    # Uncomment this line if you're using Swift
    use_frameworks! 
    
    target 'YourProjectName' do
      pod 'SwiftyJSON', '~> 2.1'
      pod 'SwiftSpinner', '~> 0.6'
      pod 'Alamofire', '~> 1.1'
      pod 'SuperRecord', '~> 1.2'
      pod 'Toucan'
      # all other pods goes here 
    end
    
    target 'YourProjectName' do
    
    end
    
    target 'YourProjectName' do
    
    end
    

提交回复
热议问题