Xcode 8 Pod update issue — Re-creating CocoaPods due to major version update [duplicate]
This question already has an answer here:
I installed the latest version Xcode 8 beta. My Project was developed by Swift 2.0. So I convert the project to Swift 3. So I update the pod file. But When I update the pod file I am getting error.
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'
Re-creating CocoaPods due to major version update. Analyzing dependencies [!] The dependency
Alamofire (~> 3.4)is not used in any concrete target. The dependency
)is not used in any concrete target. The dependency
SwiftSpinneris not used in any concrete target. The dependency
HanekeSwiftis not used in any concrete target.
NOTE: I already update the cocoapods using this command
sudo gem install cocoapods
To solve this issue delete the current pod file and create one using the terminal. Follow the below steps:
- Open Terminal
- Navigate to your Project Path
pod initin terminal to create new pod file
- Open the newly created pod file and write the pod line which you want to install after
target "TargetName" doand before
- Then type
pod installin the terminal
Hope this helps!