Recently I removed Fabric from project and installed Firebase/Crashlytics instead. After that when I try to upload app to AppStore using fastlane or do it using native Xcode tools I faced with such error:
Clang frontend command failed with exit code 70 (use -v to see invocation)
I've tried to clean DerivedData folder, pod deintegrate, pod install but error remains.
List of pods:
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'Firebase/Database'
pod 'Firebase/Auth'
pod 'Firebase/Crashlytics'
pod 'Firebase/Analytics'
pod 'Locksmith'
pod 'CryptoSwift'
pod 'QRCode'
pod 'MessageKit'
pod 'MessageInputBar'
pod 'Alamofire', '~> 5.0.0-beta.3'
pod 'SQLite.swift', '~> 0.12.0'
pod 'ReachabilitySwift'
pod 'Localize-Swift', '~> 2.0'
Version of Xcode - 10.1 (10B61)
Any ideas?
Current version of Firebase require at least Xcode 10.3. Details at https://firebase.google.com/docs/ios/setup
I had the same problem after removing Fabric and Crashlytics from my Podfile (Protobuf error). I simply put both back into my Podfile and the error when away in Xcode and I was able to archive my iOS project. The version of Protobuf went from 3.12.0 to 3.7.0 in my Podfile.lock. Xcode Version 10.1 (10B61) on MacOS 10.14 Mojave.
UPDATE - Protobuf 3.12.0 on Xcode 11.5 (11E608c) on MacOS 10.15.4 seems fine. I was able to remove Fabric and Crashlytics.
I have the following line in my Podfile:
pod 'Alamofire', '~> 4.7'
Problem is when I add the line 'pod SwiftyDropbox', there is an issue when I run pod update:
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "Alamofire":
In Podfile:
Alamofire (~> 4.7)
SwiftyDropbox was resolved to 2.0.1, which depends on
Alamofire (~> 2.0.2)
Besides there are warnings in both Alamofire as well as SwiftyDropbox framework. How do I get the latest version of SwiftyDropbox to run in XCode 9.3 and Swift 4?
A few things that aren't mentioned in the SwiftyDropbox documentation, but which are essential for avoiding/solving this:
You need to specify the version of SwiftyDropbox in the Podfile. Like this:
pod 'SwiftyDropbox', '~> 5.0.0'
Once you've specified the version in the Podfile and run pod install again, you'll get this error:
$ pod install
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "SwiftyDropbox":
In Podfile:
SwiftyDropbox (~> 5.0.0)
None of your spec sources contain a spec satisfying the dependency: `SwiftyDropbox (~> 5.0.0)`.
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
As the error message says, you need to manually run pod repo update. Why? Who knows, but you need to do it.
Once you've done that, and it has fetched the SwiftyDropbox sources, run pod install and it will work this time. The output will include "Installing SwiftyDropbox (5.0.0)".
I have executed "pod outdated" for my project. This is the output:
Analyzing dependencies
The following pod updates are available:
- Kingfisher 4.0.0 -> 4.0.0 (latest version 4.2.0)
- Lokalise 0.7.0 -> 0.7.0 (latest version 0.7.1)
- LokaliseLiveEdit 0.2.2 -> 0.2.2 (latest version 0.2.3)
- Realm 3.0.0 -> 3.0.0 (latest version 3.0.2)
- RealmSwift 3.0.0 -> 3.0.0 (latest version 3.0.2)
- SwiftLint 0.23.0 -> 0.23.0 (latest version 0.24.0)
- SwiftyJSON 3.1.4 -> 3.1.4 (latest version 4.0.0)
- Tabman 1.0.6 -> 1.0.6 (latest version 1.0.7)
What is the meaning of the version numbers which are presented three times per line?
In general, this is the scheme of a line of pod outdated's output:
- <pod name> <current version> -> <latest version (with restrictions)> (latest version <latest version (without restrictions)>)
The first version number (before the arrow) is the current version of a Pod.
The second number (after the arrow) is the latest available version according to the restrictions in your Podfile.
The third version number (inside the brackets, after "latest version") is the latest available version without the personal restrictions.
From CocoaPods Guides:
When you run pod outdated, CocoaPods will list all pods which have newer versions than the ones listed in the Podfile.lock (the versions currently installed for each pod). This means that if you run pod update PODNAME on those pods, they will be updated — as long as the new version still matches the restrictions like pod 'MyPod', '~>x.y' set in your Podfile.
I am a newbie in cocoapods and I would be appreciated if you help.
Today I want to use cocoapods to manager my dependencies in my project.
So my Profile is:
platform :ios, '8.0'
target 'TargetName' do
pod 'AFNetworking', '~> 3.0'
end
But after running pod install, I got the message as follow:
pod install
Analyzing dependencies
Downloading dependencies
Installing AFNetworking (3.1.0)
Generating Pods project
[1] 53417 abort pod install
After that, I can't find the TargetName.xcworkspace and the Podfile.lock but the Pods folder is there.
That's weird because there are no more error messages here.
I installed the cocoapods exactly according to the official guides. And here are the environments:
pod: 1.1.1
ruby: 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin16]
gem: 2.6.8
Xcode: 8.2.1
Thank you very much!
Finally I upgrade cocoapods(now Version 1.2.0.beta.1) and solve my problem.
How to find out the version of installed cocoa pods?
I'm not asking about the version of the cocoa pods gem, but the version of the pods themselves. Ideally it would say "pod GreatViewController is installed in version 1.2.3, new version available: 1.2.6".
Is there something like that?
EDIT
Based on your clarification you're looking for pod outdated. You can see more information about this with pod outdated --help
Original answer before question was edited
The command you want is pod --version
In the future you should use pod --help to find answers such as this. You can also use pod COMMAND --help to get help for specific commands.
You will find the version # in your Podfile.lock of all the pods you are currently using in your project. You will find this file at the same location as your Podfile.
This is how mine looks like:
PODS:
- Alamofire (3.4.1)
- EPSignature (1.0.2)
- Kingfisher (2.4.2)
- MBProgressHUD (0.9.2)
- SwiftyJSON (2.3.2)
DEPENDENCIES:
- Alamofire (~> 3.4)
- EPSignature
- Kingfisher
- MBProgressHUD (~> 0.9.1)
- SwiftyJSON
SPEC CHECKSUMS:
Alamofire: 01a82e2f6c0f860ade35534c8dd88be61bdef40c
EPSignature: 1f925f20b837046de46b4d396bc6e432ea383908
Kingfisher: 05bf8d04408aaa70fcd2c8c81b9f1d0f1ad313dd
MBProgressHUD: 1569cf7ace17a8bac47aabfbb8580a49690386d1
SwiftyJSON: 04ccea08915aa0109039157c7974cf0298da292a
PODFILE CHECKSUM: 95eb36b090480f40d91543881d6ddb76bb1b8ca8
COCOAPODS: 1.0.1
To get the version of cocoa pods
pod --version
To get the version of your pod, look in the Podfile.lock
When you install or update the pod, you can see the versions of both.
if You are finding the version of a particular pod installed, then follow below steps:
Open Xcode
Click on "Project Navigator"
Click on "Pods"
Open The Pod you wanna know the version of
Expand it
Expand the "Supporting Files" folder
Click On yourpodname.plist
Read the Bundle Version string, short
Open Terminal.
Change directory to your project and type the following command to open the Podfile.lock file.
$ open Podfile.lock -a Xcode
pod search pod_name
example
pod search Alamofire
So you should have the pod name to use this command and it will give you a response like the following in the command line
-> Alamofire (4.7.3)
Elegant HTTP Networking in Swift
pod 'Alamofire', '~> 4.7.3'
- Homepage: https://github.com/Alamofire/Alamofire
- Source: https://github.com/Alamofire/Alamofire.git
- Versions: 4.7.3, 4.7.2, 4.7.1, 4.7.0, 4.6.0, 4.5.1, 4.5.0, 4.4.0, 4.3.0,
4.2.0, 4.1.0, 4.0.1, 4.0.0, 3.5.1, 3.5.0, 3.4.2, 3.4.1, 3.4.0, 3.3.1, 3.3.0,
3.2.1, 3.2.0, 3.1.5, 3.1.4, 3.1.3, 3.1.2, 3.1.1, 3.1.0, 3.0.1, 3.0.0,
3.0.0-beta.3, 3.0.0-beta.2, 3.0.0-beta.1, 2.0.2, 2.0.1, 2.0.0, 2.0.0-beta.4,
2.0.0-beta.3, 2.0.0-beta.2, 2.0.0-beta.1, 1.3.1, 1.3.0, 1.2.3, 1.2.2, 1.2.1,
1.2.0, 1.1.5, 1.1.4, 1.1.3 [master repo]