简体   繁体   中英

Git: Libraries hosted in a remote repository?

I'm working in a project that has a few libraries that seem to be in a remote repository. For example:

远程图书馆

When I clone the project, all of the libraries with that icon are missing. Is there another command I need to execute to download them?

For reference, this is an iOS project and these are Objective C libraries.

Generally third party libraries are added in project via CocoaPods or git submodules.

If your project using CocoaPods then you will find a podfile inside project directory, open terminal and navigate to directory contain podfile and then type in this command pod install to checkout all libraries, it will create a workspace, once you have workspace open that project via workspace always.

If other libraries are added as submodule then you can checkout using git submodule update --init .

My guess is that they are submodules of the repository you're clonning. Try adding the --recursive option to the clone command.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM