How to install Eureka version 3 - ios

How to install version 3, it is not in cocoapods.
My pod file
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
target 'Project' do
use_frameworks!
pod 'Eureka', '~> 3.0'
end
The result of the command pod install
Analyzing dependencies
[!] Unable to satisfy the following requirements:
Eureka (~> 3.0) required by Podfile
None of your spec sources contain a spec satisfying the dependency: Eureka (~> 3.0).
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.
I understand that the repository is not updated in cocoa pods?
What to do?

Related

Am new but i need help in pod install my pod file also attached

[!] CocoaPods could not find compatible versions for pod "Firebase/core":
In Podfile:
Firebase/core
None of your spec sources contain a spec satisfying the dependency: Firebase/core.
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.
[!] Automatically assigning platform iOS with version 14.3 on target Spacechat because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform.
Please help as I need to finish this task fast.
My podfile:
#platform :ios, '9.0'
target 'Spacechat' do
use_frameworks!
pod 'Appirater'
#Firebase
pod 'Firebase/core'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/Analytics'
pod 'Firebase/Crashlytics'
end
From https://github.com/CocoaPods/CocoaPods/issues/10449:
Pod spec/subspec names are case-sensitive. It should be Firebase/Core.
Also, not required, but recommended:
Firebase/Core is no longer recommended usage. Instead, directly specify the needed Firebase libraries. See https://firebase.google.com/docs/ios/setup#available-pods.
So an even better solution is to delete the line since it is redundant with Firebase/Analytics

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

I'm new to React-Native and developing a project. Previously, it was working fine but when I installed Push Notification (rnfirebase for messaging) related dependencies, I'm getting these errors and I also tried all possible solutions from other questions too but no success.
Here is the complete errors which I'm getting while pod installation.
[!] CocoaPods could not find compatible versions for pod "Firebase/Analytics":
In snapshot (Podfile.lock):
Firebase/Analytics (= 6.13.0)
In Podfile:
Firebase/Analytics
RNFBMessaging (from `../node_modules/#react-native-firebase/messaging`) was resolved to 7.1.5, which depends on
Firebase/Analytics (~> 6.25.0)
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* changed the constraints of dependency `Firebase/Analytics` inside your development pod `RNFBMessaging`.
You should run `pod update Firebase/Analytics` to apply changes you've made.
This is the code in the pod file.
# add the Firebase pod for Google Analytics
pod 'Firebase/Analytics'
# pod 'Firebase/Auth'
pod 'Fabric', '~> 1.10.2'
pod 'Crashlytics', '~> 3.14.0'
# add pods for any other desired Firebase products
# https://firebase.google.com/docs/ios/setup#available-pods
I tried the following workaround to resolve this issue.
1. pod install --repo-update
2. pod repo remove master
pod setup
pod install
3. Delete podfile.lock
pod install
But none solution worked for me. Can anyone please help me to resolve this issue? I will really appreciate it.

Alamofire swift library version 4.4 is not installing in swift 3.0.2 project

I am trying to install Alamofire 4.4 in my swift project with pod i am following the step from the given link (https://github.com/Alamofire/Alamofire)
but i am facing this issue:-
[!] 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.
I have in in my System :
Mac os : 10.12.2
x_code version : 8.2.1
swift version : 3.0.2
pod File configuration :
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'testAlarmofireAndswiftyJson' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for testAlarmofireAndswiftyJson
pod 'Alamofire', '~> 4.4'
end
I am stucking here please help.
Execute the follwoing on your terminal
sudo gem install cocoapods --pre
Then change pod file configuration to '9.0' to '10.0'
platform :ios, '10.0'
target 'project_name' do
pod 'Alamofire', '~> 4.4'
end
After changing the podfile configuration open terminal and go to project path.
Then execute following
'pod install'
You need to add a source statement to your Podfile so CocoaPods knows where to search for the pods you're referencing. You likely want this at the top of your Podfile:
source 'https://github.com/CocoaPods/Specs.git'
CocoaPods 1.1.0+ is required to build Alamofire 4.0.0+.
To update CocoaPods you simply install the gem again
$ [sudo] gem install cocoapods
Or for a pre-release version
$ [sudo] gem install cocoapods --pre
And then try again
Podfile:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target '02-Weibo' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for 02-Weibo
pod 'Alamofire', '~> 4.4'
pod 'SnapKit', '~> 3.2.0'
end
bash command:
appledeMacBook-Pro:Weibo apple$ pod install
Analyzing dependencies
Downloading dependencies
Installing AFNetworking (3.1.0)
Installing Alamofire (4.4.0)
Installing SDWebImage (4.0.0)
Installing SVProgressHUD (2.1.2)
Installing SnapKit (3.2.0)
Generating Pods project
Integrating client project
[!] Please close any current Xcode sessions and use `Weibo.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There are 6 dependencies from the Podfile and 5 total pods installed.
[!] There are duplicate dependencies on `SnapKit` in `Podfile`:
- SnapKit (~> 3.2.0)
- SnapKit
you can try bash command :
appledeMacBook-Pro:Weibo apple$ pod update
Update all pods
Updating local specs repositories
CocoaPods 1.2.1 is available.
To update use: `sudo gem install cocoapods`
For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.2.1
Analyzing dependencies
Downloading dependencies
Using AFNetworking (3.1.0)
Using Alamofire (4.4.0)
Using SDWebImage (4.0.0)
Using SVProgressHUD (2.1.2)
Using SnapKit (3.2.0)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 5 dependencies from the Podfile and 5 total pods installed.
appledeMacBook-Pro:Weibo apple$

Simple cocoapods install bug with OAuth2

This seems like a super simple pod install, yet I'm getting this strange error. Just don't see what's wrong here.
Podfile
# platform :ios, '9.0'
target 'iLook-990' do
use_frameworks!
pod 'OAuthSwift', '~> 1.0.0'
end
Error message:
[!] Unable to satisfy the following requirements:
OAuthSwift (~> 1.0.0) required by Podfile
None of your spec sources contain a spec satisfying the dependency: OAuthSwift (~> 1.0.0).
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.
if that's the exact same text from the Podfile, you need to remove the # from the first line
platform :ios, '9.0'
target 'iLook-990' do
use_frameworks!
pod 'OAuthSwift', '~> 1.0.0'
end

ScoutMaps-iOS-SDK with Cocoapods 0.39

I updated Cocoapods to 0.39 today, it seems that this version introduces some issues with Scout Maps dependencies as I get the following error for what was a previously functional podfile.
The podfile looks like this:
platform :ios, '8.0'
target 'MyApp' do
pod 'FMDB'
pod 'Reachability'
pod 'ScoutMaps-iOS-SDK'
pod 'ScoutMaps-iOS-SDKTools'
pod 'MRProgress'
pod 'KTCenterFlowLayout'
end
And the error is this:
[!] Unable to satisfy the following requirements:
- `ScoutMaps-iOS-SDK` required by `Podfile`
- `ScoutMaps-iOS-SDK (= 2.5)` required by `Podfile.lock`
- `ScoutMaps-iOS-SDK (~> 2.5.0)` required by `ScoutMaps-iOS-SDKTools (2.5.0)`
I think ScoutMaps-iOS-SDK needs to be version 2.5.0 or you need to adjust the requirement in SDKTools to be ~> 2.5

Resources