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
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.
I installed the package using npm I then followed these instructions (french) to configure it for iOS. But I can't run the app using npx react-native run-ios, it gives me this error:
xcodebuild: error: Could not resolve package dependencies:
because no versions of facebook-ios-sdk match the
requirement 7.0.2..<8.0.0 and root depends on
facebook-ios-sdk 7.0.2..<8.0.0, version solving failed.
I tried to reinstall react-native-fbsdk and also installing pods again:
$ cd ios
$ rm Podfile.lock
$ pod repo update
$ pod install
Adding a custom script phase for Pod RNFBApp: [RNFB] Core Configuration
Auto-linking React Native modules for target `XXX`: RNCMaskedView, RNFBApp, RNFBAuth, RNGestureHandler, RNGoogleSignin, RNReanimated, RNScreens, RNVectorIcons, react-native-fbsdk, react-native-get-random-values, react-native-safe-area-context, and react-native-webview
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Fetching podspec for `Folly` from `../node_modules/react-native/third-party-podspecs/Folly.podspec`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
Downloading dependencies
Installing FBSDKCoreKit 7.1.1 (was 7.0.1 and source changed to `https://cdn.cocoapods.org/` from `trunk`)
Installing FBSDKLoginKit 7.1.1 (was 7.0.1 and source changed to `https://cdn.cocoapods.org/` from `trunk`)
Installing FBSDKShareKit 7.1.1 (was 7.0.1 and source changed to `https://cdn.cocoapods.org/` from `trunk`)
Generating Pods project
Integrating client project
Pod installation complete! There are 41 dependencies from the Podfile and 59 total pods installed.
On the other hand I have no issue running it from xcode (even though the error still show up).
My npm environment is the following:
{
"react-native": "0.62.2",
"react-native-fbsdk": "^2.0.0",
}
I still have no idea what's going on with the installation as proposed in the documentation. But we solved the problem in Xcode by updating facebook-ios-sdk:
file > Swift packages > Update to latest package versions.
After running this, facebook-ios-sdk version appears in Xcode (for us it was 7.1.1). And then the error goes away.
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 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.