Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a development pod?

Tags:

ios

cocoapods

I am new to CocoaPod and IOS in general, I am trying to use a framework I built locally in my podfile as follows:

# Pods for Example
pod 'OsonWidget', :path => "../OsonWidget/"

when I run a pod install and open the .xcworkspace of the project, the framework gets saved under Pods/Development pods. So my question is what is Development pods

like image 228
Oto-Obong Eshiett Avatar asked Dec 05 '19 16:12

Oto-Obong Eshiett


People also ask

What is a pod in project management?

POD stands for "Product Oriented Delivery." An agile POD is a group of people with different competencies complementing each other. This team is a self-sufficient and cross-functional team that works collaboratively to deliver a defined product requirement in multiple sprints by following the Scrum methodology.

What are pods in technology?

A Pod is a grouping of one or more containers that operate together. Pods reside on Nodes; more than one Pod can share the same Node. The containers within each Pod share common networking and storage resources from that host Node, as well as specifications that determine how the containers run.

What are pods in IOS development?

What is it and what does it do? Cocoapods is an application level dependency manager that runs on objective-c, swift, and any other programming languages that run on Objective-C. It focuses on source-based distribution of third party code and allows automatic integration to your Xcode projects.


1 Answers

Normally in Podfile you point to the repo with its git name and your intended version.

You’re not doing that. Instead you are pointing to the pod by the :path identifier in the Podfile.

Other than the two ways mentioned above, there are other ways to point to a repo.


Obviously you are locally pointing to a pod, ie the pod was not fetched from the actual repo, implying that you own the pod and you’re developing the pod, you want to make changes to it and immediately see how the changes work for you in your Example app. Hence it’s named ‘development pods’.

Any change you make will be reflected into the Example project. Though if you add a new file, then you need to run pod install again so the projectfile gets updated.


This is slightly different from other dependency managers where the term 'development' is used for dependencies that are necessary for testing, benchmarking, and other developer tasks. Example with Ruby Gems, you have add_development_dependency vs. add_runtime_dependency

With CocoaPods the decision to use something as development vs. deployment is per file i.e. whether or not a file imports a pod/framework or not.

Like you could have file in your test target and import the pod only in your test target and never include it in production e.g. the KIF pods. But mainly if you import a pod in your production code, then you'd need to import it again in files you have under you unit test target.

like image 182
mfaani Avatar answered Sep 20 '22 05:09

mfaani