Changing an imported library using cocoapods

后端 未结 6 975
不知归路
不知归路 2021-02-03 22:52

I am working on a project using cocoapods and suddenly I see myself doing some changes in one of the libraries. How can I ensure that those changes will never be override by a <

6条回答
  •  自闭症患者
    2021-02-03 22:58

    @pgb and wattson provided me good information but ultimately the problem was in a combination of things.

    I don't know why but it seems that cocoapods 0.22 handles headers differently. I uninstalled cocoapods and installed the version 0.20.2.

    To check the version of cocoapods I have used gem query and I have removed the cocoapods with gem uninstall cocoapods and installed the cocoapods with gem install cocoapods --version 0.20.2.

    I have used my podfile like this:

    'WhirlyGlobe', :podspec => 'https://raw.github.com/tiagoalmeida/WhirlyGlobe/master/WhirlyGlobe.podspec'
    

    Where podspec points to my new podspec. I made like this because I need to remove the :tag from the original podfile (otherwise it always points to the same spot) and this way I have more control over the file.

    In the podspec I have changed the source:

    s.source = { :git => "https://github.com/tiagoalmeida/WhirlyGlobe.git"} 
    

    To point into my fork and removed the tag.

    Thanks @pgb and @wattson for the attempts to help me. Upvoted both because they were both usefull.

提交回复
热议问题