pod not updating package but showing outdated - cocoapods

I'm trying to update my pod Intercom to the latest version. pod shows it as needing updating but it refuses to be updated.
# pod outdated
Updating spec repo `master`
Analyzing dependencies
The following pod updates are available:
- Intercom 2.3.21 -> 2.3.21 (latest version 3.0.11)
- SevenSwitch 1.4.0 -> 1.4.0 (latest version 2.0.0)
But then when I go to update it:
# pod outdated
Updating spec repo `master`
Analyzing dependencies
The following pod updates are available:
- Intercom 2.3.21 -> 2.3.21 (latest version 3.0.11)
- SevenSwitch 1.4.0 -> 1.4.0 (latest version 2.0.0)
hopebox:Sonar Mobile michaelleonetti$ pod update Intercom
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Using ISO8601 (0.6.0)
Using Intercom (2.3.21)
Using KeenClient (3.5.6)
Using MGSwipeTableCell (1.5.5)
Using SevenSwitch (1.4.0)
Using TPCircularBuffer (1.4)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 6 dependencies from the Podfile and 6 total pods installed.
[!] The `SonarCloud [Debug]` target overrides the `LIBRARY_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-SonarCloud/Pods-SonarCloud.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
How can I get pod to update to the correct version that is shown in the outdated command?

Related

Dropbox pod install Error - Higher Minimum Deployment Required?

Getting this message when attempting to install Dropbox- higher minimum deployment target required. I am on iOS 9.3. Any ideas?
$ pod install
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "Ensembles/Dropbox":
In Podfile:
Ensembles/Dropbox (~> 2.0)
Specs satisfying the Ensembles/Dropbox (~> 2.0) dependency were found, but they required a higher minimum deployment target.
It looks like the highest version of the Ensembles Pod available publicly is 1.8 and the Podfile is requesting 2.0 - https://cocoapods.org/pods/Ensembles.
If you have additional questions, please share the Podfile.

CocoaPods could not find compatible versions for pod "Firebase/Core"

Here is my Podfile:
source 'https://github.com/CocoaPods/Specs'
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
target 'Unity-iPhone' do
pod 'Google-Mobile-Ads-SDK', '7.3.1'
pod 'Firebase/Core'
end
It works well when I run 'pod install'
output:
Analyzing dependencies
Downloading dependencies
Using Firebase (4.13.0)
Using FirebaseAnalytics (4.2.0)
Using FirebaseCore (4.0.20)
Using FirebaseInstanceID (2.0.10)
Using Google-Mobile-Ads-SDK (7.3.1)
Using GoogleToolboxForMac (2.1.4)
Using nanopb (0.3.901)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 2 dependencies from the Podfile and 7 total pods installed.
Perfect, everything is fine,But if I add a specific version with FirebaseCore,like below code:
pod 'Firebase/Core','4.0.20'
and 'pod install' again
output:
[!] CocoaPods could not find compatible versions for pod "Firebase/Core":
In Podfile:
Firebase/Core (= 4.0.20)
None of your spec sources contain a spec satisfying the dependency: `Firebase/Core (= 4.0.20)`.
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.
Actually,FirebaseCore with 4.0.20 is exist,So how should I fix it?
I fixed it right now, just change Firebase/Core to FirebaseCore
(I was checked FirebaseCore.podspec file in GitHub.)
The podspec versioning for Firebase and FirebaseCore are separate, so you shouldn't use them interchangeably. The Firebase pod is a parent for the subspecs Firebase/Core, Firebase/Analytics, etc., but FirebaseCore is not using the same versioning because FirebaseCore is not a subspec of Firebase, whereas Firebase/Core is.
For reference, the Firebase podspec is here: https://github.com/CocoaPods/Specs/blob/980d013a857e7ef973531f1cf85ddb5b8a56d1b0/Specs/0/3/5/Firebase/5.10.0/Firebase.podspec.json
Run the following commands in your project/ios folder in the order:
pod update Firebase/Core
pod install --repo-update

Unable to satisfy requirements when specifying version in podfile

I'm using the Cocoapods app. When trying to install the current Alamofire, I get the following error:
Analyzing dependencies
[!] Unable to satisfy the following requirements:
- `Alamofire (~> 4.4)` required by `Podfile`
None of your spec sources contain a spec satisfying the dependency: `Alamofire (~> 4.4)`.
You have either:
* out-of-date source repos which you can update with `pod 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
This is my podfile:
project 'MyApp.xcodeproj'
# Uncomment the next line to define a global platform for your project
platform :ios, '10.0'
target 'MyApp' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for MyApp
pod 'Alamofire', '~> 4.4'
end
If I remove the version and just use pod 'Alamofire', it installs version 4.0.1. Why?
The issue is as per the last line of the log.
You need to run pod repo update
There appears to be an option in the app in the menu Specs Repos that has an update button for me. However this does not seem to work.
Running the command line then allowed mre to run Build->Install from the Cocoapods app
This might be happening due to the cocoa pod version required by the new almofire version is higher than what u have installed in your system. Please check version of ypu pod by pod --version in command line , if it is less than 1.0 update pod spec , you can find the steps here .https://guides.cocoapods.org/using/getting-started.html
Your new pod will be installed. Also the when u don not specify a version in your pod file than cocoa pods itself selects the latest version it supports and install it .Thats why your almofire was getting updated to 4.0.1.,Hope this helps you.

CocoaPods not downloading all files for AFNetworking

Lately my Xcode iOS8+ iPhone project stopped building due to a file not found error in UIButton+AFNetworking.h.
The error reads "AFImageDownloader.h" file not found.
Looking at the folder in finder, its missing half of the files that are supposed to be there when looking at the Git repo for AFNetworking. Thus it would probably fail more when that file is magically added.
All the solutions on the internet have failed. Ive tried:
- Completely removing CocoaPods, its cache and master repo from the MacBook (El Capitan)
- Pod install/update --no-clean
- All kind of commands I can't remember out of my head.
- Remove the local Git, reinstall and re-clone the repo.
When my collegae install the project on his MacBook it installs and builds just fine.
platform :ios, '8.0'
inhibit_all_warnings!
target "censored" do
pod 'BDGShare'
pod 'BDGMacros'
pod 'BDGLocation'
pod 'BDGCategories'
pod 'BDGScreenshot'
pod 'BDGImagePicker'
pod 'Lockbox'
pod 'HockeySDK'
pod 'DTCoreText'
pod 'AFNetworking'
pod 'SVProgressHUD'
pod 'DZNEmptyDataSet'
pod 'Google/Analytics'
pod 'TTTAttributedLabel'
pod 'iOS-htmltopdf', '~> 1.0'
end
The pod install verbose gives me this
pod install --verbose
Preparing
Updating local specs repositories
Updating spec repo `master`
$ /usr/bin/git pull --ff-only
Already up-to-date.
CocoaPods 1.0.0.beta.6 is available.
To update use: `gem install cocoapods --pre`
[!] This is a test version we'd love you to try.
For more information see http://blog.cocoapods.org
and the CHANGELOG for this version http://git.io/BaH8pQ.
Analyzing dependencies
Inspecting targets to integrate
Using `ARCHS` setting to build architectures of target `Pods`: (``)
Using `ARCHS` setting to build architectures of target `Pods-Censored`: (``)
Resolving dependencies of `Podfile`
Comparing resolved specification to the sandbox manifest
- AFNetworking
- BDGCategories
- BDGImagePicker
- BDGLocation
- BDGMacros
- BDGScreenshot
- BDGShare
- DTCoreText
- DTFoundation
- DZNEmptyDataSet
- Google
- GoogleAnalytics
- GoogleInterchangeUtilities
- GoogleNetworkingUtilities
- GoogleSymbolUtilities
- GoogleUtilities
- HockeySDK
- Lockbox
- SVProgressHUD
- TTTAttributedLabel
- iOS-htmltopdf
Downloading dependencies
-> Using AFNetworking (3.0.4)
-> Using BDGCategories (0.0.8)
-> Using BDGImagePicker (0.0.6)
-> Using BDGLocation (0.0.2)
-> Using BDGMacros (0.0.14)
-> Using BDGScreenshot (0.0.2)
-> Using BDGShare (0.0.9)
-> Using DTCoreText (1.6.17)
-> Using DTFoundation (1.7.9)
-> Using DZNEmptyDataSet (1.7.3)
-> Using Google (1.3.2)
-> Using GoogleAnalytics (3.14.0)
-> Using GoogleInterchangeUtilities (1.1.0)
-> Using GoogleNetworkingUtilities (1.0.0)
-> Using GoogleSymbolUtilities (1.0.3)
-> Using GoogleUtilities (1.1.0)
-> Using HockeySDK (3.8.6)
-> Using Lockbox (3.0.0)
-> Using SVProgressHUD (1.1.3)
-> Using TTTAttributedLabel (1.13.4)
-> Using iOS-htmltopdf (1.0.3)
- Running pre install hooks
Generating Pods project
- Creating Pods project
- Adding source files to Pods project
- Adding frameworks to Pods project
- Adding libraries to Pods project
- Adding resources to Pods project
- Linking headers
- Installing targets
- Installing target `AFNetworking` iOS 8.0
- Installing target `BDGCategories` iOS 8.0
- Installing target `BDGImagePicker` iOS 8.0
- Installing target `BDGLocation` iOS 8.0
- Installing target `BDGScreenshot` iOS 8.0
- Installing target `BDGShare` iOS 8.0
- Installing target `DTCoreText` iOS 8.0
- Installing target `DTFoundation` iOS 8.0
- Installing target `DZNEmptyDataSet` iOS 8.0
- Installing target `Lockbox` iOS 8.0
- Installing target `SVProgressHUD` iOS 8.0
- Installing target `TTTAttributedLabel` iOS 8.0
- Installing target `iOS-htmltopdf` iOS 8.0
- Installing target `Pods-Censored` iOS 8.0
- Running post install hooks
- Writing Xcode project file to `Pods/Pods.xcodeproj`
- Generating deterministic UUIDs
- Writing Lockfile in `Podfile.lock`
- Writing Manifest in `Pods/Manifest.lock`
Integrating client project
Integrating target `Pods-Censored` (`Censored.xcodeproj` project)
- Running post install hooks
- cocoapods-stats from
`/Library/Ruby/Gems/2.0.0/gems/cocoapods-stats-0.6.2/lib/cocoapods_plugin.rb`
Sending stats
- AFNetworking, 3.0.4
- BDGCategories, 0.0.8
- BDGImagePicker, 0.0.6
- BDGLocation, 0.0.2
- BDGMacros, 0.0.14
- BDGScreenshot, 0.0.2
- BDGShare, 0.0.9
- DTCoreText, 1.6.17
- DTFoundation, 1.7.9
- DZNEmptyDataSet, 1.7.3
- Google, 1.3.2
- GoogleAnalytics, 3.14.0
- GoogleInterchangeUtilities, 1.1.0
- GoogleNetworkingUtilities, 1.0.0
- GoogleSymbolUtilities, 1.0.3
- GoogleUtilities, 1.1.0
- HockeySDK, 3.8.6
- Lockbox, 3.0.0
- SVProgressHUD, 1.1.3
- TTTAttributedLabel, 1.13.4
- iOS-htmltopdf, 1.0.3
Pod installation complete! There are 15 dependencies from the Podfile and 21
total pods installed.
I'm unsure if this solution will specifically apply, but I tried this and it worked:
rm -rf "${HOME}/Library/Caches/CocoaPods"
rm -rf "`pwd`/Pods/"
pod update
Essentially deletes the cache of CocoaPods and then Pods file and then re-installs.
Source: https://gist.github.com/mbinna/4202236

CorePlot 1.2 - pod install no response

I just added
pod 'CorePlot', '~> 1.2'
to my Podfile, now trying
$ pod install
Resolving dependencies of `./Podfile'
Updating spec repositories
Cocoapods 0.18.1 is available.
Resolving dependencies for target `default' (iOS 6.0)
Downloading dependencies
Installing CorePlot (1.2)
It's getting hanged there with no response.
What can I do ?
This source library is nearly 200 megabytes. It may depend on your internet connection but I imagine this would complete if you gave it enough time.
If you want to see what it is doing try
$ pod install --verbose

Resources