Today I Learned

hashrocket A Hashrocket project

4 posts by jasondebottis

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.

  1. You have to uncomment or type in !use_frameworks in you Podfile

  2. You then type in the appropriate space which pods you want to install

  3. Then do pod install

  4. Create a header file for bridging the objective c code

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

target 'TippleiOS' do
    pod 'Stripe', '~> 4.0'
    pod 'AFNetworking', '~> 2.5.4'

target 'TippleiOSTests' do


target 'TippleiOSUITests' do


Alot of new information absorbed today

Today I learned to use Calabash a testing framework based off of Cucumber for Test Driven Development for iOS and Android. This helped me learn more of the Ruby language and also teach me more about what was going on underneath the framework. Specifically with the use of Rspec ,another tool that works in tandem with Cucumber, I also learned about the expectation commands to help me use the expect method. While learning these tools I was taught some commands that utilize RVM, some of the gem package methods. I am hoping to carry these skills with me on to other projects.