I am using Twitter's Fabric on my iOS app.
Crashlytics in Fabric just updated itself and now I cannot commit my project to git
. I get the error:
git error: unable to index file
Crashlytics.framework/Headers
fatal: updating files failed
Any idea what is going wrong or how to fix it?
Running git status
reveals:
Untracked files:
(use "git add <file>..." to include in what will be committed)
Crashlytics.framework/Info.plist
Fabric.framework/Info.plist
profile.xcodeproj/project.xcworkspace/xcuserdata/
profile.xcodeproj/xcuserdata/
Going into terminal and manually committing to git solved the issue. All my further commits in xcode have worked since.
git add .
git commit -m "message"
I think this relates to the git submodule since I had similar issue. However adding or removing it didn't help. What worked was reseting it into HEAD version, e.g.
git reset HEAD problematic_file_or_dir
The same issue happen to me with the Bolts.framework and Parse.framework. Both were added in the git repo already, so adding them back did not fixed the issue. I had to remove first:
cd MyApp/SDK/
git rm -r Parse.framework/
git rm -r Bolts.framework/
The I had to copy them again in the SDK/ folder and adding to git
cd MyApp/SDK/
git add .
git commit * -m "Maintenance: Fixed git error unable to index file"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With