iOS project on Xcode. We do not keep the POD files as part of our repo. A new change is needed and it is on a file from one of the PODS. How do I go about committing such a change to the repo?
Asked
Active
Viewed 134 times
2
-
fork the repo, make the change. Then either use your fork or open a pull request to ask the owner to take in your change – Simon McLoughlin Jul 15 '22 at 16:06
-
sorry, but how do I make our repo use the forked pod – Boris Jul 15 '22 at 16:21
-
I’ve added it to an answer. It’s in the cocoa pod docs – Simon McLoughlin Jul 16 '22 at 08:36
2 Answers
0
but how do I make our repo use the forked pod
You can try and copy the SHA1 of your fix from your forked repository, and update your Podfile with it, as described in "CocoaPods and GitHub forks", follwoed by a pod update
.

VonC
- 1,262,500
- 529
- 4,410
- 5,250
0
You can create a fork of the repo, make the change to a given branch, and then point your pod file to your repo + branch like this:
pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git', :branch => 'dev'
Or you can open a pull request and ask the owner to pull in your change. Depending on what your change does

Simon McLoughlin
- 8,293
- 5
- 32
- 56