Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CocoaPods repository #6

Open
Sunspension opened this issue Jan 19, 2018 · 2 comments
Open

CocoaPods repository #6

Sunspension opened this issue Jan 19, 2018 · 2 comments

Comments

@Sunspension
Copy link

Could you add your project into cocoapods repository?

@Sunspension Sunspension changed the title Cocoapods repository CocoaPods repository Jan 19, 2018
@elm4ward
Copy link
Member

Yes of course - i personally never used cocoapods myself - will have to read first what they need.
That guide should be all right? https://guides.cocoapods.org/making/making-a-cocoapod.html
Anything i need to be aware of?

@madhavajay
Copy link
Contributor

Use the cli tool from the guide. It will generate a key and store it on your machine. Future publish commands will just work once registered and just remember what ever email you use will be tied to the repo, you can then do a key reset with the same email later if you lose the key. I think I documented the entire process somewhere in the Symentis wiki if you search for Palau! 👍

The main annoying thing is that the Podfile needs to be commited for the central cocopods repo to find it but also needs to be tagged and match the Podfile.

I would suggest testing it locally to ensure you did it right, to do that you can simply include the library in brand new Xcode Project and instead of specifying the git repo you can point to a local folder like ../Corridor and then it will try using your local repo and if that successfully runs with pod install then it should work when you publish and tag it.

I covered it all in my Giving back with Github talk:
https://youtu.be/ErG-8-TMXug?t=13m46s

However just be aware the Cocopod spec syntax has changed a bit make sure to read about the newest changes, if you run the linting tool it will warn you!

$ pod spec lint

😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants