我刚开始在Xcode上使用GIT,当我尝试提交一个较旧的项目时,我一直在努力,我遇到了以下错误:
https://www.dropbox.com/s/jafzgxhit0h4d1e/Screenshot%202014-06-26%2005.37.04.png
如果我取消选中Parse.framework / Headers目录,我会收到此错误
https://www.dropbox.com/s/aqrpelqarp0liq4/Screenshot%202014-06-26%2005.38.28.png
我现在的.gitignore看起来像这样:
# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
#
# Pods/
我非常善于解决问题。
谢谢!
答案 0 :(得分:2)
问题的解决方案是导航到终端中的目录,然后键入:
然后我重新启动xcode,回到xcode并从那里推送项目。
答案 1 :(得分:0)
我遇到了同样的问题并找到了解决方案there。 问题是如果未正确设置用户设置,Xcode不想提交。 解决方案是将其放在终端中:
xcrun git config --global user.email you@yourdomain.com xcrun git config --global user.name "Your Name Here"