I have this error on Xcode.
I know this question has already been asked several times but I have tried everything.
sudo gem install cocoapods -n/usr/local/bin
pod deintegrate
pod clean
pod install --repo-update
Clean DerivedData and my project isn't on iCloud.
Please help me.
After pod deintegrate, remove GoogleAppMeasurement.framework from the Build Settings.
It should not be linked when GoogleAppMeasurementWithoutAdIDSupport is used
Related
[!] CocoaPods could not find compatible versions for pod "Flipper-Glog":
In Podfile:
Flipper-Glog (= 0.5.0.4)
None of your spec sources contain a spec satisfying the dependency: Flipper-Glog (= 0.5.0.4).
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.
Disable everything related to flipper in Podfile and then cd ios && pod install
# use_flipper!()
Worked after using this command:
pod install --repo-update
If you are building from a fresh Reach Native Project, there should be no need to edit any files in the project to get it to run.
Try the solutions here:
React native ios - error when running pod install (installing Flipper-Glog)
I encountered this problem after deleting all my iOS caches and setting some Virtual Env. Opening Xcode and simulator once then try "pod install" should work.
Remove or comment this line from your ios/Podfile in react native.
# use_flipper!()
For M1 chip Mac, run
"arch -x86_64 pod install"
solved it.
got an error in installing pods while doing pod install. I have tried cleaning, deintegrating and reinstalling pods.
i also cleaned the project many times but got no positive results.
[!] The plist file at path `path` doesn't exist.
in most of the case it happen because there is some problem in cocoapod library or cocoapod library is not installed so try below code in terminal and install cocoapod
may it will work
sudo gem uninstall cocoapods
Verify that you have moved to the correct folder where the pod file is located
I am trying to install 2 pod files without affecting/updating other dependencies in my pod file.
I tried with pod install --no-repo-update command. It is not working.
I want to install Fabric pod file when I try to install other dependencies are also updating and I don't want it because some dependencies are deprecated and it will show some warning and error, this is I don't want so I am trying to install pod without affecting and updating other pod files.
Here is the screenshot, in xcode I am getting 197 warnings. Before the installation of pod file there were 6 Xcode warnings.
pod 'Fabric'
pod 'Crashlytics'
You cannot install specific pod but you update specific pod.
Reference
https://guides.cocoapods.org/using/pod-install-vs-update.html
Pod install
Use pod install to install new pods in your project. Even if you already have a Podfile and ran pod install before; so even if you are just adding/removing pods to a project already using CocoaPods.
Pod Update
Use pod update [PODNAME] only when you want to update pods to a newer versio
To install new pod without updating others, just open up the existing file and add your pod file below the existing pods.
Now, go to terminal and open up your project and run command:
$ pod install
Note: This way, it will only add new pod without updating your existing pods.
I am trying set up Stripe in my IOS app, but i have no clue what these instructions mean?
Is cocoapods an application i install?
Step 1: Install Stripe Cocapod(s)
CocoaPods is a common library dependency management tool for iOS
development. To use the Stripe CocoaPods, simply add the following to
your Podfile and run pod install:
pod 'Stripe'
pod 'PaymentKit'
Note: be sure to use the .xcworkspace to
open your project in Xcode instead of the .xcproject.
Here is the guide i am using to set up Stripe... Guide
CocoaPods is a dependency manager.
Install CocoaPods. sudo gem install cocoapods. You may need to pod setup afterwards.
Go into your project directory and pod init. This will generate a Podfile.
Go ahead and edit the Podfile with your favourite editor (vim, emacs, flame wars...). Enter pod 'Stripe' in one line under your target, and also enter pod 'PaymentKit' in a second line. This will install these two frameworks and their dependencies.
Run pod install for CocoaPods to magically install the required dependencies.
Open your $project.xcworkspace. The workspace includes your project as well as your pods target which generates the necessary frameworks.
You're done! Enjoy Stripe and PaymentKit!
cocoa pod installation step :
Open Your Terminal :
sudo gem update --system
sudo gem install cocoapods
pod setup
Then Go To Your Project Directory
pod init
open -a Xcode Podfile
[Edit POD file with pod ‘libname’ ]
pod install
I added an external framework via cocoapods into my iOS application. How can i remove that library from the project?
Remove lib from Podfile, then pod install again.
The unwanted side effects of simple folder delete or installing over existing installation have been removed by a script written by Kyle Fuller - deintegrate and here is the proper workflow:
Install clean:
sudo gem install cocoapods-clean
Run deintegrate in the folder of the project:
pod deintegrate
Clean (this tool is no longer available):
pod clean
Modify your podfile (delete the lines with the pods you don't want to use anymore) and run:
pod install
Done.
Remove the library from your Podfile
Run pod install on the terminal
None of these worked for me. I have pod version 1.5.3 and the correct method was to remove the pods that were not longer needed from the Podfile and then run:
pod update
This updates your Podfile.lock file from your Podfile, removes libraries that have been removed and updates all of your libraries.
To completely remove Pod or Cocoapods Framework from your Project repository !
sudo gem install cocoapods-clean
pod deintegrate
pod clean
Then Try to remove the File
Pods
Podfile
Podfile.lock
yourProjectName.xcworkspace
Remove pod name(which to remove) from Podfile and then
Open Terminal, set project folder path
Run pod install --no-integrate
Remove pod name from Podfile then
Open Terminal, set project folder path and
Run pod update command.
NOTE: pod update will update all the libraries to the latest version and will also remove those libraries whose name have been removed from podfile.
First, determine which versions of Cocoapods are installed :
gem list --local | grep cocoapods
You get output as this:
cocoapods (1.11.2)
cocoapods-clean (0.0.1)
cocoapods-core (1.11.2, 1.10.2, 1.10.1)
cocoapods-deintegrate (1.0.4)
To completely remove, issue the following commands:
gem uninstall cocoapods
gem uninstall cocoapods-clean
gem uninstall cocoapods-core
gem uninstall cocoapods-deintegrate
Running again to confirm that Cocoapods has been removed:
gem list --local | grep cocoapods
You may have residual artefacts in a hidden folder in your directory. Remove these with:
rm -rf ~/.cocoapods