Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
未提取迦太基定义的git子模块_Git_Github_Git Submodules_Ios Frameworks_Carthage - Fatal编程技术网

未提取迦太基定义的git子模块

未提取迦太基定义的git子模块,git,github,git-submodules,ios-frameworks,carthage,Git,Github,Git Submodules,Ios Frameworks,Carthage,我使用Carthage将几个框架作为git子模块导入。有关回购协议的参考信息,请访问 迦太基创建了多种配置,导致无法构建新克隆的副本: ➜ IKnowKungFu git:(master) carthage update *** Fetching Nimble *** Fetching Quick *** Fetching CleanroomLogger *** Fetching CleanroomASL Parse error: expected submodule commit SHA i

我使用Carthage将几个框架作为git子模块导入。有关回购协议的参考信息,请访问

迦太基创建了多种配置,导致无法构建新克隆的副本:

➜  IKnowKungFu git:(master) carthage update
*** Fetching Nimble
*** Fetching Quick
*** Fetching CleanroomLogger
*** Fetching CleanroomASL
Parse error: expected submodule commit SHA in output of task (ls-tree -z HEAD Carthage/Checkouts/CleanroomLogger) but encountered:
回购协议的新克隆提供了以下内容:

  • 迦太基/退房/灵活
  • Carthage/checkout/Quick
存在但为空文件夹

运行
git子模块更新--init--recursive后

  • 迦太基/退房/灵活
  • Carthage/checkout/Quick
  • Carthage/checkout/Quick/Externals/Nimble
都结帐了。然而,我不记得:

  • 迦太基/退房/洁净室ASL
  • Carthage/checkout/CleanroomLogger
Cartfile

➜  IKnowKungFu git:(master) cat Cartfile
github "emaloney/CleanroomLogger"
➜  IKnowKungFu git:(master) cat Cartfile.private
github "Quick/Quick"
github "Quick/Nimble"
➜  IKnowKungFu git:(master) cat .gitignore
###
### https://github.com/github/gitignore/blob/master/Swift.gitignore
###

# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## Build generated
build/
DerivedData/

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/

## Other
*.moved-aside
*.xccheckout
*.xcscmblueprint

## Obj-C/Swift specific
*.hmap
*.ipa

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
.build/

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
Carthage/Checkouts

Carthage/Build

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md

fastlane/report.xml
fastlane/screenshots


###
### https://github.com/github/gitignore/blob/master/Global/OSX.gitignore
###

.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
Cartfile.private

➜  IKnowKungFu git:(master) cat Cartfile
github "emaloney/CleanroomLogger"
➜  IKnowKungFu git:(master) cat Cartfile.private
github "Quick/Quick"
github "Quick/Nimble"
➜  IKnowKungFu git:(master) cat .gitignore
###
### https://github.com/github/gitignore/blob/master/Swift.gitignore
###

# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## Build generated
build/
DerivedData/

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/

## Other
*.moved-aside
*.xccheckout
*.xcscmblueprint

## Obj-C/Swift specific
*.hmap
*.ipa

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
.build/

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
Carthage/Checkouts

Carthage/Build

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md

fastlane/report.xml
fastlane/screenshots


###
### https://github.com/github/gitignore/blob/master/Global/OSX.gitignore
###

.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
.gitmodules

➜  IKnowKungFu git:(master) cat .gitmodules
[submodule "Carthage/Checkouts/CleanroomASL"]
    url = https://github.com/emaloney/CleanroomASL.git
[submodule "Carthage/Checkouts/CleanroomLogger"]
    path = Carthage/Checkouts/CleanroomLogger
    url = https://github.com/emaloney/CleanroomLogger.git
[submodule "Carthage/Checkouts/Nimble"]
    path = Carthage/Checkouts/Nimble
    url = https://github.com/Quick/Nimble.git
[submodule "Carthage/Checkouts/Quick"]
    path = Carthage/Checkouts/Quick
    url = https://github.com/Quick/Quick.git
.gitignore

➜  IKnowKungFu git:(master) cat Cartfile
github "emaloney/CleanroomLogger"
➜  IKnowKungFu git:(master) cat Cartfile.private
github "Quick/Quick"
github "Quick/Nimble"
➜  IKnowKungFu git:(master) cat .gitignore
###
### https://github.com/github/gitignore/blob/master/Swift.gitignore
###

# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## Build generated
build/
DerivedData/

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/

## Other
*.moved-aside
*.xccheckout
*.xcscmblueprint

## Obj-C/Swift specific
*.hmap
*.ipa

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
.build/

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
Carthage/Checkouts

Carthage/Build

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md

fastlane/report.xml
fastlane/screenshots


###
### https://github.com/github/gitignore/blob/master/Global/OSX.gitignore
###

.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
更新1 进一步研究表明,迦太基更新了
Carthage/checkout/CleanroomASL
Carthage/checkout/CleanroomLogger
的.gitmodules条目,但未能创建允许克隆子模块的目录指针

我所做的一切似乎都无法解决这个问题。包括

  • 从.gitmodules中手动删除洁净室条目
  • 擦除本地迦太基文件夹
  • rm-rf~/Library/Caches/org.carthage.CarthageKit
我不知道如何解决这个问题

更新2
提交错误报告

您不需要递归初始化子模块,一个简单的
git子模块更新--init
就足够了。@Abizern遗憾的是,这并不能解决洁净室的问题,如果您查看github上的repo结构,似乎还没有为这些子模块创建文件夹,这使它们处于不确定状态。出于某种原因,我无法说服迦太基忘记洁净室的东西,而且没有一个git子模块更新——init命令似乎能够获取丢失的项目。阅读后,我不确定这是否是配置的问题?迦太基有问题吗?或者两者都有?既然1146现在已经关闭了,你能回答这个问题吗?我想这是我的回购协议的问题,它进入了这个状态。迦太基是使我的回购协议进入这种状态的工具。所以这是一个定义谁的问题的问题。如果你能更具体地告诉我你想知道什么,那么也许我可以用进一步的回答info@MaximVeksler我隐约记得4天前我在git+Carthage上遇到了一个问题,但现在我不知道到底是什么问题。无论如何,这个问题对我一直都有帮助。