因此最新版本的GoogleMaps框架是123MB,這會導致GitHub 100MB限制的各種問題。我試過Large File Storage,但那不行。所以現在我試圖忽略我的Pods目錄。我編輯我的.gitignore文件看起來像這樣:如何忽略git中的目錄
# Xcode
.DS_Store
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
*.xcworkspace
!default.xcworkspace
xcuserdata
profile
*.moved-aside
DerivedData
.idea/
# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
Pods/
但是當我嘗試推,我還是從谷歌地圖波德獲得相同的文件過大的誤差。我錯過了什麼?
編輯:這裏是爲那些不相信它確切的錯誤:
File Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Versions/A/GoogleMaps is 123.00 MB; this exceeds GitHub's file size limit of 100.00 MB
你試圖忽略這些文件後,他們被git跟蹤?如果是這樣,你可能需要'git rm --cached'來解除它們。 –
「git的100MB限制」? – jthill
是的,@ jthill。查看編輯。這是一個非常着名的限制。 – soleil