简体   繁体   中英

What are stripe cocoapods. How do i install them?

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.

  1. Install CocoaPods. sudo gem install cocoapods . You may need to pod setup afterwards.

  2. Go into your project directory and pod init . This will generate a Podfile.

  3. 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.

  4. Run pod install for CocoaPods to magically install the required dependencies.

  5. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM