usami-k / CocoaSeeds

Git Submodule Alternative for Cocoa.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CocoaSeeds

Gem Build Status

Git Submodule Alternative for Cocoa. Inspired by CocoaPods.

Why?

  • iOS 7 projects are not available to use Swift libraries from CocoaPods or Carthage.

    ld: warning: embedded dylibs/frameworks only run on iOS 8 or later

  • CocoaSeeds just downloads the source code and add to your Xcode project. No static libraries, no dynamic frameworks at all.

  • Git Submodule sucks.

  • It can be used with CocoaPods and Carthage.

Installation

$ [sudo] gem install cocoaseeds

Seedfile

You have to write a Seedfile in the same directory with .xcodeproj.

MyProject/
|-- MyProject/
|   |-- AppDelegate.swift
|   `-- ...
|-- MyProject.xcodeproj
|-- Seedfile
`-- ...

Seedfile

# seeds for all targets
github "Alamofire/Alamofire", "1.2.1", :files => "Source/*.{swift,h}"
github "devxoul/JLToast", "1.2.2", :files => "JLToast/*.{swift,h}"
github "devxoul/SwipeBack", "1.0.4"  # files default: */**.{h,m,mm,swift}
github "Masonry/SnapKit", "0.10.0", :files => "Source/*.{swift,h}"

# seeds for specific target
target :MyAppTest do
  github "Quick/Quick", "v0.3.1", :files => "Quick/**.{swift,h}"
  github "Quick/Nimble", "v0.4.2", :files => "Nimble/**.{swift,h}"
end

Using CocoaSeeds

$ seed install

Then all the source files will be automatically added to your Xcode project with group named 'Seeds'.

Seeds-in-Xcode

FAQ

Yes, you can add Seeds folder to .gitignore.

License

CocoaSeeds is under MIT license. See the LICENSE file for more info.

About

Git Submodule Alternative for Cocoa.

License:MIT License


Languages

Language:Ruby 99.2%Language:Makefile 0.8%