Unity: None of your spec sources contain a spec satisfying the dependency: `Firebase/Analytics (= 10.0.0)` - xcode

We are trying to use Firebase Analytics but when we build our Unity project we get a CocoaPods installation failure:
None of your spec sources contain a spec satisfying the dependency: `Firebase/Analytics (= 10.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.
Ignoring ffi-1.13.1 because its extensions are not built. Try: gem pristine ffi --version 1.13.1
Ignoring json-1.8.6 because its extensions are not built. Try: gem pristine json --version 1.8.6
pod repo update output:
Updating spec repo `cocoapods`
$ /usr/bin/git -C /Users/josephhopkins/.cocoapods/repos/cocoapods fetch origin --progress
$ /usr/bin/git -C /Users/josephhopkins/.cocoapods/repos/cocoapods rev-parse --abbrev-ref HEAD
master
$ /usr/bin/git -C /Users/josephhopkins/.cocoapods/repos/cocoapods reset --hard origin/master
HEAD is now at 7b2edeb16678 [Add] SwiftCurrent 5.1.10
Updating spec repo `trunk`
CocoaPods 1.11.3 is available.
To update use: `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.11.3
We are using Unity 2020.3.8f1. We tried deleting the Library cache folder but error still happens. How do we fix this problem?

I was able to fix by deleting all Firebase related files and reinstalling.

Related

CocoaPods trunk no Specs

I installed Cocoapods v1.7.0 on Mac Catalina 10.15.7 (19H2). Now I'm upgrading Cocoapods to v1.10.0.
Firstly I uninstall v1.7.0 following https://superuser.com/a/686319.
Then install v1.10.0 with no issue:
sudo gem install cocoapods
In my project folder, I run pod repo update:
$pod repo update  ✔  6s  17:17:13
Updating spec repo `trunk`
$pod repo update  ✔  3s  17:34:21
It only takes 3s with no issue, but I get nothing in folder ~/.cocoapods/repos/trunk/Specs(empty folder):(
Then as you may already know it cannot find any spec when running pod install:
pod install --repo-update
Updating local specs repositories
Adding spec repo `trunk` with CDN `https://cdn.cocoapods.org/`
Analyzing dependencies
[!] Unable to find a specification for `Firebase/Analytics`
You have either:
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
Note: Not pod Firebase/Analytics issue, tried other pods also got this error.
Any suggestion to fetch Cococapods CDN trunk Specs normally? Thanks in advance.
It's working by uninstalling CocoaPods v1.10.0 & then installing v1.8.0.
Don't know the root cause yet, guess have to install the first CocoaPods version with CDN.

Problems Faced while downloading MACOS VMWARE on Ubuntu and running Xcode

I downloaded macOS using QEMU-system. You can find the full tutorial here::https://www.youtube.com/watch?v=p-pJ3qCse20
https://github.com/foxlet/macOS-Simple-KVM
Here are the problems I faced while downloading macOS on Ubuntu and running Xcode on the macOS
Problem 1: qemu-system-x86_64: failed to initialize KVM: No such file or directory when running ./basic.sh in terminal
Solution: enable virtualization from bios or you can run sudo chown [username] /dev/kvm in terminal
Note that after installing Xcode, you should install bundle, ruby, cocoapods
Problem 2: Could not find proper version of cocoapods (1.9.1) in any of the sources
Solution the cocoapods you're using are not compatable, uninstall cocoapods and reinstall again with cocoapods version = 1.9.1
Problem 3: Getting errors while running pod install
[!] Unable to find a specification for `PureLayout (= 3.1.5)`
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.
I tried running pod repo update or with pod install --repo-update but I also got this error
Updating local specs repositories
$ /.cocoapods/repos/cocoapods fetch origin --progress
remote: Enumerating objects: 41, done.
remote: Counting objects: 100% (41/41), done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 27 (delta 18), reused 0 (delta 0), pack-reused 0
From https://github.com/cocoapods/specs
5c7f45f07ad8..bed8af45c97e master -> origin/master
$ /usr/bin/git -C /Users/nisrine/.cocoapods/repos/cocoapods rev-parse --abbrev-ref HEAD
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
HEAD
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
[!] CocoaPods was not able to update the `cocoapods` repo. If this is an unexpected issue and persists you can inspect it running `pod repo update --verbose`
running pod repo update --verbose also didnt work and gave this error
/.cocoapods/repos/cocoapods rev-parse --abbrev-ref HEAD
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
HEAD
Solution: open vi Gemfile.lock
and add git configuration to the file
now running bundle exec pod install will work fine
Problem 4: CocoaPods could not find compatible versions for pod "Firebase/Performance"
Solution: run pod install --repo-update and ran again bundle exec pod install the error is resolved
Problem 5: simulator wasn't running due to multiple commands produce after running /build/products/debug-iphonesimulator/umbrella.framework/umbrella
Solution: go to File >Project/Workspace settings
then Change the build system to Legacy Build system.

Objective Sharpie Error: Failed to run pod list

I'm using Cocoapods 1.4.0, Visual Studio Community for Mac 7.3.3 (build 12), Objective Sharpie 3.4.0-c0f0e73, Mac OS 10.12.6 (Sierra)
whenever I try to add the example Cocoapod on https://developer.xamarin.com/guides/cross-platform/macios/binding/objective-sharpie/examples/cocoapod/
I get the following error:
mbp:iOS user$ sharpie pod init ios AFNetworking
** Setting up CocoaPods master repo ...
(this may take a while the first time)
Setting up CocoaPods master repo
$ /usr/bin/git -C /Users/user/.cocoapods/repos/master fetch origin
--progress
remote: Counting objects: 1101, done.
remote: Compressing objects: 100% (224/224), done.
remote: Total 1101 (delta 540), reused 465 (delta 465), pack-reused 402
Receiving objects: 100% (1101/1101), 165.70 KiB | 2.91 MiB/s, done.
Resolving deltas: 100% (690/690), completed with 258 local objects.
From https://github.com/CocoaPods/Specs
6a7b167b826..807a5994b64 master -> origin/master
$ /usr/bin/git -C /Users/user/.cocoapods/repos/master rev-parse
--abbrev-ref HEAD
master
$ /usr/bin/git -C /Users/user/.cocoapods/repos/master reset --hard
origin/master
HEAD is now at 807a5994b64 [Add] SwiftyGif 4.1.0
Setup completed
** Searching for requested CocoaPods ...
error: Failed to run pod list
Does anyone know why, and who to work this around?
I'm just trying to add a Pod.
Note: I have no issues when trying to use CocoaPods on an Native iOS Project
This works fine for me using a fresh install of CocoaPods and Objective Sharpie.
Install CocoaPods from Homebrew:
brew install cocoapods
Find latest Objective Sharpie release on the Xamarin Forums and install it by double clicking the pkg file.
Now just run the same command you already tried:
sharpie pod init ios AFNetworking
--- ~/derp » sharpie pod init ios AFNetworking
** Setting up CocoaPods master repo ...
(this may take a while the first time)
Ignoring executable-hooks-1.4.2 because its extensions are not built. Try: gem pristine executable-hooks --version 1.4.2
Ignoring gem-wrappers-1.3.2 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.3.2
Setting up CocoaPods master repo
$ /usr/local/bin/git -C /Users/tomasci/.cocoapods/repos/master fetch origin --progress
Enter passphrase for key '/Users/tomasci/.ssh/cheesebaron-github':
remote: Counting objects: 36, done.
remote: Compressing objects: 100% (33/33), done.
remote: Total 36 (delta 22), reused 0 (delta 0), pack-reused 0
From ssh://github.com/CocoaPods/Specs
e874a97a946..0d05aca4c0d master -> origin/master
$ /usr/local/bin/git -C /Users/tomasci/.cocoapods/repos/master rev-parse --abbrev-ref HEAD
master
$ /usr/local/bin/git -C /Users/tomasci/.cocoapods/repos/master reset --hard origin/master
HEAD is now at 0d05aca4c0d [Add] XTFMDB 1.5.0
CocoaPods 1.6.0.beta.1 is available.
To update use: `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.6.0.beta.1
Setup completed
** Searching for requested CocoaPods ...
** Working directory:
** - Writing Podfile ...
** - Installing CocoaPods ...
** (running `pod install --no-repo-update`)
Ignoring executable-hooks-1.4.2 because its extensions are not built. Try: gem pristine executable-hooks --version 1.4.2
Ignoring gem-wrappers-1.3.2 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.3.2
Analyzing dependencies
Downloading dependencies
Installing AFNetworking (3.2.1)
Enter passphrase for key '/Users/tomasci/.ssh/cheesebaron-github':
Generating Pods project
Skipping User Project Integration
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.
** 🍻 Success! You can now use other `sharpie pod` commands.
The only thing that might be different here is that I have ssh config set up for GitHub.

CocoaPods Pod trunk delete not work

when I do:
$ pod --version
0.39.0
but if I try:
$ pod trunk delete
[!] Unknown command: delete Did you mean: register
Usage:
$ pod trunk COMMAND
Interact with the CocoaPods API (e.g. publishing new specs)
Commands:
+ add-owner Add an owner to a pod
+ info Returns information about a Pod.
+ me Display information about your sessions
+ push Publish a podspec
+ register Manage sessions
+ remove-owner Remove an owner from a pod
Options:
--silent Show nothing
--verbose Show more debugging information
--no-ansi Show output without ANSI codes
--help Show help banner of specified command
Delete isn't a command for trunk.
You have a list of valid commands in your post.
It looks like the CocoaPods documentation for pod trunk delete is referring to the command which has been added in the (currently unreleased) CocoaPods 1.0 beta. You can see in the cocoapods-trunk changelog that this command has been added. Once that is released you'll be able to use it. In the meantime you could install the beta with
[sudo] gem install cocoapods --pre
The command pod trunk is for the third-party libraries which are upload to cocoapods by yourselves.
And if you want to delete a version of your third-party library like ABCManager(v1.0.2),you can type this:pod trunk delete ABCManager v1.0.2 and your library of version v1.0.2 will be deleted.

Unable to install 'cocoapods' gem from rubygems.org (bad response backend read error)

I'm getting an error when I run 'gem install cocoapods' on OSX Mavericks.
$ gem install cocoapods
ERROR: Could not find a valid gem 'cocoapods' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - bad response backend read error 503 (https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/cocoapods-0.27.1.gemspec.rz)
ERROR: Possible alternatives: cocoapods
Please note that I can download the cocoapods-0.27.1.gemspec.rz directly. I am running the latest version of XCode (5.0.1) and the latest version of its CLI tools. RVM is also configured to run the latest Ruby version (2.0.0p247)
Sometimes ,the default source for gem, https://rubygems.org/, can't be accessed.
It should be removed by command:
gem sources -r https://rubygems.org/
And then new source should be added:
gem sources -a https://ruby.taobao.org/
Update the cache:
gem sources -u
You can check sources with:
gem sources
Finally , you can install cocoapods:
sudo gem install cocoapods
Use the below mentioned steps to install Cocoapods in your machine,
I solved the same issue with be below mentioned steps
1.Install command line tools using the command
xcode-select --install
2.Install Home brew by
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
3.Install Ruby using homebrew
brew install ruby
4.Check Ruby version
ruby -v
5.Install Ruby
gem source -a http://rubygems.org/
6.gem install cocoapods
sudo gem install cocoapods
or
sudo gem install -n /usr/local/bin cocoapods
7.Go to below folder
cd ~/.cocoapods/repos
8.Run the below command
git clone https://github.com/CocoaPods/Specs.git master
9.Go to the directory where Podfile is present and run
pod install
It work for me:
Remove https source by command:
gem sources -r https://rubygems.org/
And then new http source should be added:
gem sources -a http://rubygems.org/
Update the cache:
gem sources -u
Though I'm not sure what caused read error 503 I was able to work around the problem fairly easily by manually installing the cocoapods.gem.
If anyone else experiences similar problems (with cocoapods or any other gem), download the appropriate gem file (cocoapods-0.27.1.gem in my case) directly from RubyGems.org. Then run the gem install cocoapods-0.27.1.gem. The install command will scan the working directory first, thus detecting and installing the local gem package, cutting out the broken repository.
I found that just removing and re-adding rubygems seemed to work for me ( using the High Sierra on Mac) I prefer to use the official Rubygems repos
gem sources -r https://rubygems.org/
gem sources -a https://rubygems.org/
gem sources -u
sudo gem install cocoapods
I assume it must have been a glitch..
This worked for me. Make sure to include sudo with install command.
gem sources -a http://rubygems.org/
gem sources -u
sudo gem install cocoapods
Just follow there steps and error is gone
1.Install command line tools using the command
xcode-select --install
2.Install Home brew by
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
3.Install cocapods using home-brew, it take care of everything
brew install cocoapods
4. Last step
pod setup
For me I had to change rubygems.org to be the gems url used at my company (which caches from rubygems.org).
I did sudo gem install cocoapods --source <my_company_url_for_gems>
Let all http replace https,because the right cocoa pods's sources is https://ruby.taobao.org/

Resources