我试图将我的cocoapod项目推向主干。但每次发生这种情况
pod trunk push MyCocoaPod.podspec
Updating spec repo `master` Performing a deep fetch of the `master` specs repo to improve future performance [!] /usr/bin/git fetch
--unshallow
error: cannot open .git/FETCH_HEAD: Permission denied
答案 0 :(得分:0)
因为您对.git / FETCH_HEAD目录没有足够的权限,请运行以下命令:
cd `your cocoa pod project file`
sudo chown -R `courser` .git/