expected submodule commit SHA in output of task
Hughen opened this issue · 6 comments
I can not build this project in my computer.
I went through the following process, e.g:
git submodule update --init
pod install
carthage update
but 3 step has been failed:
*** Fetching YAML.framework
Parse error: expected submodule commit SHA in output of task (ls-tree -z HEAD Library/Eureka) but encountered:
Thank you. It's my mistake of not removing these lines from .gitsubmodules.
I will fix this and push new update. In the meantime, you can fix this yourself by starting fresh, and removing those lines before execute commands.
I alway build failed, there is a same error tips:
Parse error: expected submodule commit SHA in output of task (ls-tree -z HEAD Library/Eureka) but encountered:
my gitmodules file:
[submodule "Library/ShadowPath/ShadowPath/shadowsocks-libev"]
path = Library/ShadowPath/ShadowPath/shadowsocks-libev
url = https://github.com/icodesign/shadowsocks-libev.git
[submodule "Library/ShadowPath/ShadowPath/libmaxminddb"]
path = Library/ShadowPath/ShadowPath/libmaxminddb
url = https://github.com/haxpor/libmaxminddb.git
[submodule "Library/CallbackURLKit"]
path = Library/CallbackURLKit
url = https://github.com/phimage/CallbackURLKit.git
Ok, please also do rm -rf .git/modules/Library/Eureka
and see if it helps.
there not exist .git/modules/Library/Eureka before remove it.
x:Potatso $ ls -al .git/modules/Library/
total 0
drwxr-xr-x 4 x staff 128 May 5 19:19 .
drwxr-xr-x 3 x staff 96 May 5 19:19 ..
drwxr-xr-x 12 x staff 384 May 5 19:20 CallbackURLKit
drwxr-xr-x 3 x staff 96 May 5 19:19 ShadowPath
You need to remove cloned directory, edit that .gitmodules file then execute the command. It needs to start all over to make it works.
I pushed a new commit for this fix. You don't have to pull in but just follow above steps. If still encounter the problem, feel free to reopen. Thanks!