Use a fork of Restkit on github via CocoaPods?

前端 未结 2 671
被撕碎了的回忆
被撕碎了的回忆 2020-12-23 07:43

restkit is using in a different way the oauth2 protocol, I need to change the code to be able to use it in my way:

From:

// OAuth 2 valid request
if          


        
2条回答
  •  南方客
    南方客 (楼主)
    2020-12-23 08:13

    Even though this question has an accepted answer, I wanted to add an alternative approach. At some time (I believe after this question was asked) the ability to have local references in Podfiles (and not just Podspecs) was added to Cocoapods.

    Rather than creating custom creating public forks in Github and custom Podspecs, I find it easier to:

    1. Clone the Github library locally.
    2. Create a new local branch where I make the changes that I need in that library that are specific to my project.
    3. Modify my Podfile to point to that local directory and local branch:

      pod 'FXForms', :path => '~/Documents/Projects/RestKit', :branch => 'mybranch'
      

    This makes it easy for me to incorporate any new versions of the library (by just pulling them from origin and then merging them into my local branch).

提交回复
热议问题