Cocoapods: Error -9806 while trying to integrate a library - cocoapods

I like to integrate a zip library in my macOS application.
I created the Podfile with pod init and added the pod to it:
# Uncomment this line to define a global platform for your project
platform :osx, '10.10'
target 'Test' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Test
pod 'Zip', '~> 0.4'
end
But if I execute pod install I am getting following output on the console (tried it a few times):
Analyzing dependencies
Downloading dependencies
Installing Zip (0.4.3)
[!] Error installing Zip
[!] /usr/bin/git clone https://github.com/marmelroy/Zip.git /var/folders/n5/4f8c27g57tn94vhb7xcd95ww0000gp/T/d20160712-26003-1l6n5lt --template= --single-branch --depth 1 --branch 0.4.3
Cloning into '/var/folders/n5/4f8c27g57tn94vhb7xcd95ww0000gp/T/d20160712-26003-1l6n5lt'...
error: RPC failed; curl 56 SSLRead() return error -9806
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: unpack-objects failed

After installing curl with OpenSSL pod install did work:
$ brew install --with-openssl curl

Related

get `Error installing libpd-ios` on `pod install`

When pod install I get
Analyzing dependencies
Downloading dependencies
Installing libpd-ios (0.11.0)
[!] Error installing libpd-ios
[!] /usr/bin/git -C /var/folders/2w/0wtczkq94c9ch_y6m89gg29m0000jq/T/d20221207-77916-57ccbt submodule update --init --recursive
Submodule 'jni/opensl_stream' (git://github.com/nettoyeurny/opensl_stream.git) registered for path 'jni/opensl_stream'
Submodule 'pure-data' (git://git.code.sf.net/p/pure-data/pure-data) registered for path 'pure-data'
Cloning into '/private/var/folders/2w/0wtczkq94c9ch_y6m89gg29m0000jq/T/d20221207-77916-57ccbt/jni/opensl_stream'...
fatal: unable to connect to github.com:
github.com[0: 140.82.121.4]: errno=Operation timed out
according to fatal: unable to connect to github.com: github.com[0: 140.82.121.3]: errno=Operation timed out this is related to ssh
but how do I fix it?

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.

AzureIoTUtility Cocoapods Installation Failed

I'm trying to install the azure libraries via cocoapods for device use but it's not letting me. The branch jbobotek-test-cocoa is missing.
Below are the console log when trying to do a pod install:
Installing AzureIoTUtility (1.1.12d)
[!] Error installing AzureIoTUtility
[!] /usr/bin/git clone https://github.com/Azure/azure-c-shared-utility.git /var/folders/f9/zvsz4k2j56d35r49dq33cc0r0000gp/T/d20200117-31514-hwmiqr --template= --single-branch --depth 1 --branch jbobotek-test-cocoa
Cloning into '/var/folders/f9/zvsz4k2j56d35r49dq33cc0r0000gp/T/d20200117-31514-hwmiqr'...
warning: Could not find remote branch jbobotek-test-cocoa to clone.
fatal: Remote branch jbobotek-test-cocoa not found in upstream origin

Unable to update cocoapods 0.39 to the latest version in Xcode 8.2.1?

a0007988:multipurposenavigation-showcase-ios amospune$ pod install
[!] Unable to load a specification for the plugin `/Library/Ruby/Gems/2.0.0/gems/cocoapods-deintegrate-1.0.1`
Cloning spec repo `allianz-ghe-onemobile-library-podspecs-ios` from `https://api-dev.allianz.de/ghe/onemobile-library/podspecs-ios.git`
[!] Unable to add a source with url `https://api-dev.allianz.de/ghe/onemobile-library/podspecs-ios.git` named `allianz-ghe-onemobile-library-podspecs-ios`.
You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`.
This is the error, I'm getting when I try to install pod. My .xcworkspace project is present in the directory
"/Users/AmosPune/Desktop/ios"
. Any help would be appreciated. Also when I use the command sudo gem install pod, it gives me this error:
a0007988:multipurposenavigation-showcase-ios amospune$ sudo gem install cocoapods
Password:
ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/pod

Unknown pod name

In AppCode, via CocoaPods, I am trying to install the pod QuickDialog
In the Podfile, I have:
pod "QuickDialog"
When I go to install, I get an error saying Unknown pod name
The Message window shows:
/usr/bin/ruby /Applications/AppCode.app/Contents/bin/pod install --no-ansi
Updating local specs repositories
Failed with exit code: -1
What do I need to do?
Edit: Also tried suggestion by I'L'I:
pod 'QuickDialog', '~1.0'
Try on a new project:
Xcode > New > Project > Single View App > Obj-C > SO-32098667 > Next > Create
Terminal > cd ../SO-32098667/
pod init
Use the Podfile below
pod install
Podfile
platform :ios, '8.0'
target 'SO-32098667' do
pod 'QuickDialog'
end
pod install
Downloading dependencies
Installing QuickDialog (1.0)
Generating Pods project
Integrating client project
Tested minutes ago with pod version 0.37.1 Xcode version 6.4.

Resources