Xcode 8 Pod Upgrade Issue - Re-Creating CocoaPods Due to Upgrade Main Version

I installed the latest version of Xcode 8 beta. My project was developed by Swift 2.0. Therefore, I am converting the project to Swift 3. Therefore, I am updating the pod file. But when I update the pod file, I get an error.

Paging file:

source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.0' use_frameworks! pod 'Alamofire', '~> 3.4' pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git' pod "SwiftSpinner" #pod "AFNetworking", "2.5.0" pod 'HanekeSwift' 

Error message:

Recreating CocoaPods due to major version upgrade. Dependency Analysis [!] The Alamofire (~> 3.4) dependency Alamofire (~> 3.4) not used for any specific purpose. The SwiftyJSON (from dependency SwiftyJSON (from https://github.com/SwiftyJSON/SwiftyJSON.git ) not used for any concrete purpose. The SwiftSpinner dependency SwiftSpinner not used for any concrete purpose. The HanekeSwift dependency HanekeSwift not used for any concrete purpose.

Note: I am already updating cocoapods using this command

 sudo gem install cocoapods 
+6
source share
1 answer

To solve this problem, delete the current pod file and create it using the terminal. Follow these steps:

  • Open terminal
  • Go to the project path.
  • Enter pod init in the terminal to create a new pod file
  • Open the newly created pod file and write the swap line that you want to set after target "TargetName" do and before end .
  • Then type pod install in terminal

Hope this helps!

+15
source

All Articles