CocoaPods: point to a branch in pod spec

后端 未结 2 654
渐次进展
渐次进展 2021-02-05 00:53

I\'m trying to install code from a repository\'s branch on a pod spec, and based on the documentation, this should work:

s.dependency \'repository_name\',
:git =         


        
相关标签:
2条回答
  • 2021-02-05 01:24

    Please check the discussion here - Link

    I think it is possible now as per the discussion but initially -

    They suggested Tag instead of the branch as the problem with a branch vs a tag is that a branch does not specify a specific point in the history, whereas a tag does. This distinction is very important, as we need to guarantee that depending on a specific version of the library will result in using the same source every time. Technically it is possible to delete a tag and create it again pointing to a different commit, but this is less likely to happen.

    0 讨论(0)
  • 2021-02-05 01:32

    You can't use a pod dependency like that, it only supports "name", "version". Source: guides.cocoapods.org. It is expected that the :git and :branch metadata will come from the podfile.

    0 讨论(0)
提交回复
热议问题