简体   繁体   中英

How do I download all submodules of a github project in cocoa?

I am not an experienced user of git or github.

I am trying to use this module: https://github.com/blommegard/APNS-Pusher

I download it and issue the commands

pod install

and it shows

Analyzing dependencies
Downloading dependencies
Installing SBAPNSPusher (2.2.1)
Generating Pods project
Integrating client project

[!] From now on use `Test.xcworkspace`.

I think thats it. I try to run the project and I see this error:

#import <MGSFragaria/MGSFragaria.h> ... **MGSFragaria/MGSFragaria.h file not found**

I see that there is a folder named Vendor/Fragaria on the project and inside I see Fragaria.xcodeproj in red. I see that fragaria is another project of github but is a huge one. I am not shure how to integrate that on this project.

wasn't the command pod install supposed to install all dependencies? How do I fix that?

The problem is that the spec for this library doesn't instruct CocoaPods to do this. The source attribute needs to include :submodules => true for this ( documented here ).

You can update this by contacting the library owner.

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