Zigii Wong
Zigii Wong

Reputation: 7826

How to change the pod if I have to fix something while using cocoapods

Very new to Cocoapods. I am wondering how to change my dependencies properly for my project supporting cocoapods.

Let say I have a project which using AFNetworking. I want to change some file of the standard library of AFNetworking and use them into my project. And anytime after command line pod install, I have to go to the standard AFNetworking library and fix something manually.

I am sure I am not understanding well what cocoapods would help if I need to change some source file of a dependency. Please help me to become better.

Thanks.

Upvotes: 1

Views: 168

Answers (2)

AliSoftware
AliSoftware

Reputation: 32681

See the official documentation in CocoaPods Guides that explains how to do this.

Upvotes: 1

Jamin Zhang
Jamin Zhang

Reputation: 161

Fork AFNetworking to your repositories, and release a new version with your code (for example: with tag "v2.5.1"). then you can pod AFNetworking like this:

pod 'AFNetworking', :git => 'https://github.com/yourgithub/AFNetworking.git', :tag => 'v2.5.1'

Once you want to pull new codes from AFNetworking, just rebase in your branch and release a new version.

Upvotes: 1

Related Questions