-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Podfile内的引用的Pod版本为什么不写死呢? #6
Comments
master 分支上无需执行 pod install 因为 Pods/ 目录并没有放到 .gitignore 中 |
好吧,我是考虑如果后续有人给你提PR,涉及到Pod的升级或者降级,会有点麻烦,每次都使用Pod Update更新最新版...按理说不应该保持使用一个稳定版本吗😂 |
这个问题其实不存在的,因为根据 CocoaPods 的官方建议 |
呃,有道理,看来是我好久没用Github了...在公司我们都是隐藏Pods目录的,Podfile依赖写死,禁止使用Pod Update命令...😂 |
clone工程后想debug看下代码,pod install后发现和.lock内的版本差别巨大,然后看到Podfile内没有指定版本,这里还是指定一下比较好,否则无法保证我们和你的依赖环境一致...直接导致打开工程后编译报错,修复编译问题后各种Crash...😂😂
pod install 后的版本diff:
![WX20200615-155905@2x](https://user-images.githubusercontent.com/10970854/84632402-6e727d80-af21-11ea-87d7-e6a78c9ba02e.png)
Podfile 文件:
![WX20200615-160231@2x](https://user-images.githubusercontent.com/10970854/84632548-a5e12a00-af21-11ea-8944-00ca82f49e6b.png)
The text was updated successfully, but these errors were encountered: