Cocoapod integration with swift
Today I had to integrate a project that I am working on for open source distribution with Cocoapods. I have used this repository manager before but not in swift.
-
You have to uncomment or type in !use_frameworks in you Podfile
-
You then type in the appropriate space which pods you want to install
-
Then do pod install
-
Create a header file for bridging the objective c code
-
Then in your build settings , swift code generation area type in the name of the header file you just created
# Uncomment this line to define a global platform for your project
platform :ios, '9.0'
# Uncomment this line if you're using Swift
use_frameworks!
target 'TippleiOS' do
pod 'Stripe', '~> 4.0'
pod 'AFNetworking', '~> 2.5.4'
end
target 'TippleiOSTests' do
end
target 'TippleiOSUITests' do
end
Tweet