on running pod install there is appearing following error
[!] CocoaPods could not find compatible versions for pod "OneSignalXCFramework":
In Podfile:
onesignal_flutter (from `.symlinks/plugins/onesignal_flutter/ios`) was resolved to 3.2.7, which depends on
OneSignalXCFramework (= 3.9.1)
None of your spec sources contain a spec satisfying the dependency: `OneSignalXCFramework (= 3.9.1)`.
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.
try running the following command
cd ios/
pod repo update
rm -rf Podfile.lock Pods
pod install
Related
[!] CocoaPods could not find compatible versions for pod "tau_sound_core":
In Podfile:
flutter_sound (from .symlinks/plugins/flutter_sound/ios) was resolved to 8.0.2+1, which depends on
tau_sound_core (= 8.0.2+1)
None of your spec sources contain a spec satisfying the dependency: tau_sound_core (= 8.0.2+1).
First, use the 10.0 or higher, inside Podfile for flutter_sound
platform :ios, 10.0
Then run this to clean caches inside your project directory:
cd ios
pod cache clean --all
rm Podfile.lock
rm -rf .symlinks/
cd ..
flutter clean
flutter pub get
cd ios
pod update
pod repo update
pod install --repo-update
pod update
pod install
cd ..
It's a simple fix with:
cd ./ios
pod repo update
delete Podfile.lock
delete pods
delete .symlink
pod install
In macOS terminal I keep getting the [!] Unable to find source ref ... error message whenever I try to run pod install for any Xcode project. I have installed CocoaPods.
Full Error Message Examples:
[!] Unable to find source ref for CLTypingLabel.swift for target CLTypingLabel.
[!] Unable to find source ref for SVIndefiniteAnimatedView.m for target SVProgressHUD
[!] Unable to find source ref for NSButton+WebCache.m for target SDWebImage.
podfile:
platform :ios, '13.0'
target 'Myapp iOS13' do
use_frameworks!
pod 'CLTypingLabel'
end
I figured out how to get CocoaPods working! It seems there might be an issue installing pods on a secondary macbook account even though the account has full admin privileges. I logged into the primary or initial account created on the macbook, installed CocoaPods and pod install was able to install dependencies. I will also need to work on my project on the primary account instead.
My solution, brew must be uninstalled first:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
and
brew uninstall cocoapods
brew uninstall ruby
and
sudo gem install ffi
sudo gem install cocoapods
later remove (#) (#platform :ios, '15.0') and change ('15.0'):
# Uncomment the next line to define a global platform for your project
platform :ios, '15.0'
target 'Myapp' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
pod 'CLTypingLabel'
end
finally
pod install
I'm using Artifactory backed Cocoapods. I have the artifactory plugin installed and I have a cocoapods-remote spec repo properly configured in my ~/.cocoapods/repos and ~/.cocoapods/repos-art directories.
I am running into a problem when trying to install the RealmSwift pod.
Podfile:
plugin 'cocoapods-art', :sources => [
'cocoapods-remote'
]
target 'App' do
use_frameworks!
pod 'RealmSwift'
end
Running (pod version: 1.3.1):
pod install
Resulting cocoapods error message:
Installing Realm (2.10.2)
[!] /bin/bash -c
set -e
sh build.sh cocoapods-setup
core is not a symlink. Deleting...
Downloading dependency: sync 1.10.8
ERROR: One of realm's submodules is missing!
If you're using Realm and/or RealmSwift from a git branch, please add
'submodules: true' to their entries in your Podfile.
I can get around this problem by substituting pod 'RealmSwift' with:
pod 'RealmSwift', git: 'https://github.com/realm/realm-cocoa.git', submodules: true, tag: 'v2.X.Y'
Is there another work around? This seems like there's something wrong with a symlink? Is there a way to configure Artifactory such that this updated configuration in the Podfile is no longer required?
I am trying to add ReactiveKit To my Xcode project with CocoaPods.
That is my pods file:
platform :ios, '8.0'
source 'https://github.com/CocoaPods/Specs.git'
target '<my-proj-name-here>' do
use_frameworks!
pod 'SideMenu'
pod 'ReactiveKit'
pod 'Bond'
end
I ran the following lines from command line:
pod cache clean --all
pod deintegrate
pod install
Tons of errors are shown:
I wasn't enough familiar with cocapods.
The following commands have solved it:
Reinstalling:
sudo gem install cocoapods
Updating Packages ("pod install" doesn't install the latest)
pod update
I have tried to install :
pod 'ReachabilitySwift', '~> 3'
into my Podfile, but I get this error:
[!] Unable to satisfy the following requirements:
ReachabilitySwift (~> 3) required by Podfile
None of your spec sources contain a spec satisfying the dependency: ReachabilitySwift (~> 3).
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.
Any ideas how can I install it , I also tried manually, but it didn't work too.
P.S I am using CocoaPods
after updating:
CocoaPods 1.1.0.rc.2 is available.
To update use: sudo gem install cocoapods --pre
[!] This is a test version we'd love you to try.
For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.1.0.rc.2
Analyzing dependencies
Pre-downloading: SwiftyJSON from https://github.com/BaiduHiDeviOS/SwiftyJSON.git, branch swift3
Downloading dependencies
Installing ReachabilitySwift 3 (was 2.3.3)
Using SVProgressHUD (2.0.3)
Installing SwiftyJSON 2.3.2 (was 2.3.2)
Generating Pods project
Integrating client project
Pod installation complete! There are 3 dependencies from the Podfile and 3 total
pods installed.
[!] Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.
Ivans-Air-2:popo IvanDosevDimitrov$
Just run sudo gem install cocoapods and then pod updateafter that.