Member-only story

Using Local Pods

Steven Curtis
4 min readMay 14, 2019

--

Pulling out local files and functionality for a private framework to me, makes sense.

What if I could make a testable (tested), reusable HTTPManager that I could use in all my projects?

Prerequisites:

  • Some experience of using Pods (Pod Init, Pod Install)

One extra thing you might need to know is that use of TextEdit may introduce awful smartquotes into the podspec and podfile. You should use a general text editor like Sublime text for editing these files.

Creation of the Pod

  1. Open Xcode
  2. Create a new project. But this time, make sure that it is a new Cocoa Touch Framework

3. Close Xcode

4. Use Terminal to traverse to the project folder. Within terminal create the podfile with ‘Pod Init’

5. Pod Install

6. Open the xcworkspace, if you like with the command line “open -a Xcode HTTPManager.xcworkspace”

Your project will have an objective-c header file, and this is fine and normal

--

--

No responses yet