美文网首页
iOS 【问题记录】cocoaPods库文件太大导致无法上传gi

iOS 【问题记录】cocoaPods库文件太大导致无法上传gi

作者: traxes | 来源:发表于2019-11-25 12:07 被阅读0次

解决办法:

一. 使用git lfs突破100限制。Git LFS官方网址。这种没有尝试过,貌似有容量限制。这里主要记录下面的处理方法。

二. 一般工程中大于100M的都是库文件。如果是pod库文件的话,可以删除git历史中所有pod/下的文件和设置忽略pod/文件来处理。如果这样,工程在运行前本地pod install就可以了。

具体步骤:

1.配置.gitignore 添加下面内容,忽略Pods/文件上传

Pods/

2.执行命令删除所有分支下pods/的历史文件

git filter-branch --force --prune-empty --index-filter 'git rm -rf --cached --ignore-unmatch Pods' --tag-name-filter cat -- --all

//pods 可以为文件夹名称或者具体路径下的文件(pods或 pod/xx/../x.framework或xx/xx/../xx)

3.提交修改

git commita -am "xxx"
git push

links:
http://www.codeinterpreter.com/2015/01/solving-this-exceeds-githubs-file-size.html

相关文章

网友评论

      本文标题:iOS 【问题记录】cocoaPods库文件太大导致无法上传gi

      本文链接:https://www.haomeiwen.com/subject/irbdwctx.html