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