Swiftpack.co - swiftyfinch/Rugby as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by swiftyfinch.
swiftyfinch/Rugby 2.8.0
🏈 Cache CocoaPods for faster rebuild and indexing Xcode project.
⭐ī¸ 650
🕓 3 weeks ago
macOS
.package(url: "https://github.com/swiftyfinch/Rugby.git", from: "2.8.0")




Motivation

Why do we need some optimizations while working on huge projects with CocoaPods?
- Slow and unnecessary indexing of pods targets, which implementation we rarely try to edit;
- Redundant rebuild time, probably as a result of problems, related to CocoaPods or Xcode;
- Freezing UI during navigating through a project or editing it;
- Broken or extremely slow autocompletion;
- Noisy laptop turbines, heated aluminum, and infinite spinning pinwheel.

More in the 📖 foundation and remastering stories.

Description

🏈 Rugby is CLI tool that was developed to solve the above problems:
+ Cache all pods dependencies and remove their targets from the Pods project;
+ Rebuild only changed pods or even download them;
+ Delete any unneeded targets with sources from a project and reduce its size.

What makes it different?

🕊 Not a project dependency, just an optional step;
🌱 Doesn't change Podfile and Podfile.lock;
✈ī¸ Can run a sequence of commands from a YAML file;
🕹ī¸ Single command usage;
đŸŗ Ready for remote cache;
đŸ§Ŗ Cozy log output;
🚀 Swiftish and uses native Xcode build system.

Ruby alternatives: PodBuilder | CocoaPods Binary Cache | CocoaPods Binary


How to install đŸ“Ļ

First of all, if you have the first version Rugby 1.x, you need to delete it.
Then call where rugby command and be sure that there are no any of paths to rugby.

First Install

curl -Ls https://swiftyfinch.github.io/rugby/install.sh | bash

Self-Update

If you already have Rugby, which version is at least 2.0.0b2, you can use such a command.

> rugby update

Full Guide

Read more in the guide how to install it.
If you look for the legacy Rugby 1.x, visit this page.

How to use 🏈

Preconditions

  1. If you use Objective-C in your project, be sure that you import modules correctly.
    Use @import Something instead of #import "Something.h".
    Because Rugby will include built frameworks in your project;
  2. Before using Rugby you should be sure that your project source code is finalized.
    🔸 For example: if you use SwiftGen, run it before calling Rugby.
    Otherwise, your source code will be modified during building with Rugby. Then the hashes of binaries will not be suited.
    If you encounter a problem, try to use rugby build pre to prebuild your project and finalize source code;
  3. Be sure that all your pods (including development) are ready to build standalone.
    Otherwise, you can get a state when one of them can't be reused correctly without the source of its dependencies.
    As a temporary workaround, you can exclude some pods like rugby -e BadPod.
    🔸 For example: if some of your pods use incorrect headers.

Then run this command in your project directory after each pod install.
It will build all targets by default:

> rugby

Deintegrate it with the rollback command:

> rugby rollback

Also, you can write a custom plan (sequence of commands).
Use 🏈 RugbyPlanner for visualizing changes in your project without applying them.
For advanced usage, please read the documentation below.

📚 Documentation

đŸ“Ļ How to Install
📖 Commands Help
🚏 Migration Guide
đŸŗ Remote Cache


🤝 Contribution

Feel free to open a pull request or a discussion.

📮 Support

If you want to support this project, you can do some of these:
1) Press ⭐ī¸. It's a nice mark which means that Rugby is useful;
2) Share the project 🌍 somewhere with somebody;
3) Leave feedback in the discussions đŸ’Ŧ section.

Let's Roll-oll 🏈

GitHub

link
Stars: 650
Last commit: 5 hours ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

🏈 v2.8.0
3 weeks ago

Enhancements 🚀

Internal ⚙ī¸

New Contributors

Full Changelog: https://github.com/swiftyfinch/Rugby/compare/2.7.1...2.8.0

How to Update đŸ“Ļ

Use this command to update Rugby from v2.0 or newer:

> rugby update --version 2.8.0

Or read the guide đŸĻŽ how to install it. Check out the 📖 readme. You can find there all information.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics