I have been trying to run someone's project but can't do pod install.
pod install
Analyzing dependencies
Pre-downloading: `KNMultiItemSelector` from `https://github.com/kentnguyen/KNMultiItemSelector.git`
Downloading dependencies
Installing AFNetworking (2.5.1)
Installing Amplitude-iOS (2.2.4)
Installing Analytics (1.11.2)
Installing AppsFlyer-SDK (2.5.3.10)
Installing Bugsnag (4.0.3)
[!] Error installing Bugsnag
[!] /usr/bin/git submodule update --init
Submodule 'KSCrashModule' (git#github.com:bugsnag/KSCrash.git) registered for path 'KSCrashModule'
Cloning into 'KSCrashModule'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Clone of 'git#github.com:bugsnag/KSCrash.git' into submodule path 'KSCrashModule' failed
I tried a bunch of different suggestions on Stack Overflow etc. and still running into this. Anyone have some other ideas?
I have same problem. I follow
Checking for existing SSH keys(https://help.github.com/articles/checking-for-existing-ssh-keys/)
Adding your SSH key to the ssh-agent(https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/#adding-your-ssh-key-to-the-ssh-agent)
and then enter Correct SSH keys password.
"pod install" again, It's work.
I ended up removing the "Bugsnatcher" podfile and reinstalling it. I had another error with a different podfile afterwards, but also reinstalled that one. Project built after that.
Related
I'm trying to install ResearchKit to support an iOS application project that I am working on, but I'm having trouble installing it using CocoaPods. Despite my best attempt(s) at installing, my project fails on the import ResearchKit line in one of the files with an error indicating that ResearchKit cannot be found.
Basic System Information:
MacOS 10.14.6
Xcode 11.3.1 (11C504)
CocoaPods 1.9.3
To install CocoaPods, I'm running the $ pod install command at the command line. ResearchKit is referenced in my Podfile as follows:
pod 'ResearchKit', '2.0.0'
And running $ pod install yields the following:
Installing ResearchKit (2.0.0)
[!] Error installing ResearchKit
[!] /usr/bin/git clone https://github.com/ResearchKit/ResearchKit.git /var/folders/zg/v1h_8jdj5p77k3b208xfl_540000gn/T/d20201019-18654-1lebm6x --template= --single-branch --depth 1 --branch 2.0.0
Cloning into '/var/folders/zg/v1h_8jdj5p77k3b208xfl_540000gn/T/d20201019-18654-1lebm6x'...
Note: checking out 'b46a5f4d8350549918c8aae7d16b67dcb73fbff9'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
git-lfs filter-process: git-lfs: command not found
fatal: the remote end hung up unexpectedly
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'
[!] Automatically assigning platform `iOS` with version `13.1` on target `Master-Sample` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
I am, however, convinced that ResearchKit exists on my system, because running $ pod search ResearchKit yields:
-> ResearchKit (2.0.0)
ResearchKit is an open source software framework that makes it easy to create
apps for medical research or for other research projects.
pod 'ResearchKit', '~> 2.0.0'
- Homepage: https://www.github.com/ResearchKit/ResearchKit
- Source: https://github.com/ResearchKit/ResearchKit.git
- Versions: 2.0.0, 1.5.2, 1.5.0, 1.4.1, 1.3.1, 1.3.0, 1.2.1, 1.2, 1.1.2,
1.0.0 [trunk repo]
Any advice on why the ResearchKit install my be failing during execution of the $ pod install command, and/or why, if it is installed on my system, my project is unable to find it?
Thank you in advance! 😊
Resolved - I needed to install git-lfs. (https://github.com/ResearchKit/ResearchKit/issues/1219).
I have problem with running app on ios that was cloned from github i tried to install pod put it giving me this error.
[!] Error installing MaterialControls
[!] /usr/local/bin/git clone https://github.com/fpt-software/Material-Controls-For-iOS.git /var/folders/0s/r4qtkcpj5wsbp5qrn3x224x00000gn/T/d20200819-21909-1j0u8aj --template= --single-branch --depth 1 --branch v1.2.2
Cloning into '/var/folders/0s/r4qtkcpj5wsbp5qrn3x224x00000gn/T/d20200819-21909-1j0u8aj'...
remote: Repository not found.
fatal: repository 'https://github.com/fpt-software/Material-Controls-For-iOS.git/' not found
Let's try to run pod install inside your IOS folder
This project does not exist anymore, so that's the probleme. You can try to open a new project and copy the dart files, if you still have them.
Whenever I try to install any of Google's cocoapods I get one of two errors.
Either:
$ pod install
Analyzing dependencies
[!] The version of CocoaPods used to generate the lockfile (0.38.0.beta.2) is higher than the version of the current executable (0.37.2). Incompatibility issues may arise.
CocoaPods 0.38.0.beta.2 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.
Downloading dependencies
Installing Google (1.0.7)
[!] Error installing Google
...
inflating: /var/folders/<myDirectory>/Samples/signin/SignInExampleSwift/ViewController.swift
warning [/var/folders/<myDirectory>/file.zip]: 375 extra bytes at beginning or within zipfile
(attempting to process anyway)
Or:
$ pod install
[in /Users/<user>/Desktop/FakeProject]
Analyzing dependencies
CocoaPods 0.38.0.beta.2 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.
Downloading dependencies
Installing AppInvites (1.0.1)
[!] Error installing AppInvites
[!] /usr/bin/tar xfz /var/folders/<myDirectory>/file.tgz -C /var/folders/<myDirectory>
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
I've been trying this with both new and existing objective-c projects and have tried uninstalling and re-installing cocoapods. Not really sure what the issue seems to be and Google doesn't have any troubleshooting for their cocoapods.
Try updating your gem
sudo gem update -n /usr/local/bin cocoapods
pod install
Deleting podfile.lock and pod install fixed it for me.
I had the same issue and I did gem install cocoapods first then pod install worked fine.
After 6 hours i found this
go to http://cocoapods.org/ and download tar file
I got an error after installing this pod.
I successfully got that original app to work after bringing it to my desktop and installing pods.
The problem is that after trying it with the real app I want to merge it with, after running pod install and opening the .xcodeworkspace project; I get 1 warning saying the file is already open or something like that.
My question: Should one run pod install in the same place where my original .xcodeproj is located or somewhere else? How do I install this pod to my own application without an error? When I open workspace I see the title of my app and under it 4 pods with a question mark and one compiler warning.
WTL2:~ Apple$ cd desktop
WTL2:desktop Apple$ cd myapp
WTL2:myapp Apple$ touch podfile
WTL2:myapp Apple$ open -a TextEdit Podfile
WTL2:myapp Apple$ pod install
Analyzing dependencies
CocoaPods 0.36.0.beta.2 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.
Downloading dependencies
Installing FXBlurView (1.6.3)
Installing HexColors (2.2.1)
Installing MessageBanner (1.0.3)
Generating Pods project
Integrating client project
[!] From now on use `myapp.xcworkspace`.
WTL2:faunna Apple$
The specific Xcode warning is:
couldn't load myapp because it is already open from another project or workspace
in my project Podfile, it contains this line - pod 'ZXingObjC', '~> 2.2.6'
then I execute this command: pod install --verbose --no-repo-update
Analyzing dependencies
Finding Podfile changes
A ZXingObjC
Resolving dependencies of Podfile
Resolving dependencies for target `Pods' (iOS 5.0)
- ZXingObjC (~> 2.2.6)
Comparing resolved specification to the sandbox manifest
A ZXingObjC
Downloading dependencies
-> Installing ZXingObjC (2.2.6)
GitHub download
Creating cache git repo (/Users/leo/Library/Caches/CocoaPods/GitHub/460c72131c6f29c2d0f283a2dc9a9d7c7ff3388f)
Cloning to Pods folder
$ /usr/bin/git clone https://github.com/TheLevelUp/ZXingObjC.git /Users/leo/Library/Caches/CocoaPods/GitHub/460c72131c6f29c2d0f283a2dc9a9d7c7ff3388f --mirror
Cloning into bare repository '/Users/leo/Library/Caches/CocoaPods/GitHub/460c72131c6f29c2d0f283a2dc9a9d7c7ff3388f'...
It hangs here for a long time, and finally give below error:
error: RPC failed; result=56, HTTP code = 200
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Any one knows how to solve this? I want to use ZXingObjc in my project...ios