Carthage和Git:git存储库的URL隐藏在目录下

时间:2016-10-26 16:51:04

标签: git github xcode7 carthage

我们为公司提供Github付费存储库。我们有一个所有的git repo。 repo目录结构如下所示。这些库(Library-1和Library-2)项目隐藏在Level-n目录下。

现在我需要将这两个库集成到我的项目中。我正在使用迦太基。

对于carthage更新,如何在git存储库中提及库的URL? Github.com/MyCompany/iOS-Comp

iOS-Comp/
   Documents/
          Design/
          Screens/
   Tech/
          Level_1/
          Level_2/
          Level_3/
               Level_3_1/
                    Level_3_1_1/
                        Library-1/   <==== Library-1 directory
                              MyProjectTests/
                              MyProject.xcodeproj
                              MyProject/
                                    One.swift
                                    Two.swift
                                    Three.swift
                                    MyStoryboard.Storyboard
                        Library-2/   <==== Library-2 directory
                              MyProjectTests/
                              MyProject.xcodeproj
                              MyProject/
                                    One.swift
                                    Two.swift
                                    Three.swift
                                    MyStoryboard.Storyboard

               Level3_2/
               Level3_3/
               Level3_4/
   Materials/
   Assets/
   PDFs/
   Notes/

对于Cartfile文件我该如何提及内容? 示例购物车文件

# I cannot mention something like this, because my project 
# is buried under some directories.
github "ReactiveCocoa/ReactiveCocoa" >= 2.3.1

# Use a project from GitHub Enterprise
github "https://enterprise.local/ghe/desktop/git-error-translations"

# I tried to give below URL which does not work
git "https://github.com/iOS-Comp/Tech/Level_3/Level_3_1/Level_3_1_1/Library-1.git" "master"

有人可以帮助我如何在cartfile中为这种类型的Git仓库提及Git URL? 对于carthage更新,如何提及git存储库的URL?

0 个答案:

没有答案