问题描述
我已经使用cocoapods将MKStoreKit版本4.99添加到我的项目中。我的Podfile包括:
I've added MKStoreKit version 4.99 to my project using cocoapods. My Podfile consists of:
platform :ios, '6.0'
pod 'MKStoreKit', '~> 4.99'
MKStoreKit有一个名为MKStoreKitConfigs.h的配置文件需要在每个项目上修改基础,我已适当地修改了文件。当MKStoreKit发布新版本(比如5.0)并执行 pod update
时会发生什么?我的更改会被覆盖吗?你能描述为什么是或为什么没有?
MKStoreKit has a configuration file called MKStoreKitConfigs.h that needs to be modified on a per-project basis, and I've modified the file appropriately. What will happen when MKStoreKit releases a new version, say 5.0, and I execute pod update
? Will my changes be overwritten? Could you describe why yes or why no?
推荐答案
是的,pod更新将覆盖你的更改。你可以做的是在Github上分叉项目,在你的fork中进行更改并将Cocoapods指向fork。请参阅通过cocoaPod在github上使用Restkit的分支?关于如何做到这一点。
Yes, pod update will overwrite your changes. What you could do is fork the project on Github make the changes in your fork and point Cocoapods to the fork. See Use a fork of Restkit on github via cocoaPod? on how to do that.
这篇关于当新版本的pod可用时,“pod update”会覆盖我的代码更改吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!