Open SaeedZhiany opened 4 years ago
The same happens to me. Any solution up to now?
C:\Users\hdai.cocoapods\repos\cocoapods>pod repo update
Updating spec repo cocoapods
$ C:/Program Files/Git/cmd/git.exe -C C:/Users/hdai/.cocoapods/repos/cocoapods fetch origin --progress
$ C:/Program Files/Git/cmd/git.exe -C C:/Users/hdai/.cocoapods/repos/cocoapods rev-parse --abbrev-ref HEAD
master
$ C:/Program Files/Git/cmd/git.exe -C C:/Users/hdai/.cocoapods/repos/cocoapods reset --hard origin/master
error: invalid path 'Specs/c/f/f/XCActionSheet./0.0.2/XCActionSheet..podspec.json'
fatal: Could not reset index file to revision 'origin/master'.
[!] CocoaPods was not able to update the cocoapods
repo. If this is an unexpected issue and persists you can inspect it running pod repo update --verbose
@halid-ali @SaeedZhiany Have you found the solution to this? I'm struggling with the same issue...
I have found a solution for this. You need to disable protect NTFS in the git config. This is the command: git config core.protectNTFS false
. See article Stack Overflow: https://stackoverflow.com/questions/63727594/github-git-checkout-returns-error-invalid-path-on-windows
I've just tried @stijnvdelsen's solution for the global Git config, and it worked perfectly in my case:
git config --global core.protectNTFS false
Environment
Additionally I should mention that I try to install pods in windows using cocoapods 1.7.3 (I also tried with v1.7.5, 1.8.0, 1.8.4, 1.9.0, and 1.9.1) but none of them can not successfully install the pods and generate the
pod.lock
. (I just want to generate the files to commit in my repository for later usages)Upgrading version
from 0.59.10 to RN 0.62.2
Description
running
pod install --repo-update
gives me the error message belowI also check the cocoapods/spec repository, really there is a file with the name
XCActionSheet..podspec.json
but probably it should have two dots consequently (that causes the error)I also checked the folder
0.0.3
, it seems it has the same problem. (I've also check some other spec folders randomly. their names were correct.)so at the end how I should solve the problem?
Reproducible demo
I'm working on it, just post it here soon maybe someone gives me a solution before I can reproduce the problem.