• Stars
    star
    694
  • Rank 65,170 (Top 2 %)
  • Language
    Ruby
  • License
    MIT License
  • Created over 9 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Makes it easy to build a list of frameworks.

cocoapods-rome

Rome makes it easy to build a list of frameworks for consumption outside of Xcode, e.g. for a Swift script.

Installation

$ gem install cocoapods-rome

Important

In the examples below the target 'caesar' could either be an existing target of a project managed by cocapods for which you'd like to run a swift script or it could be fictitious, for example if you wish to run this on a standalone Podfile and get the frameworks you need for adding to your xcode project manually.

Usage

Write a simple Podfile, like this:

MacOS

platform :osx, '10.10'

plugin 'cocoapods-rome'

target 'caesar' do
  pod 'Alamofire'
end

iOS

platform :ios, '8.0'

plugin 'cocoapods-rome', { :pre_compile => Proc.new { |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['SWIFT_VERSION'] = '4.0'
        end
    end

    installer.pods_project.save
},

    dsym: false,
    configuration: 'Release'
}

target 'caesar' do
  pod 'Alamofire'
end

then run this:

pod install

and you will end up with dynamic frameworks:

$ tree Rome/
Rome/
└── Alamofire.framework

Advanced Usage

For your production builds, when you want dSYMs created and stored:

platform :osx, '10.10'

plugin 'cocoapods-rome', {
  dsym: true,
  configuration: 'Release'
}

target 'caesar' do
  pod 'Alamofire'
end

Resulting in:

$ tree dSYM/
dSYM/
β”œβ”€β”€ iphoneos
β”‚Β Β  └── Alamofire.framework.dSYM
β”‚Β Β      └── Contents
β”‚Β Β          β”œβ”€β”€ Info.plist
β”‚Β Β          └── Resources
β”‚Β Β              └── DWARF
β”‚Β Β                  └── Alamofire
└── iphonesimulator
    └── Alamofire.framework.dSYM
        └── Contents
            β”œβ”€β”€ Info.plist
            └── Resources
                └── DWARF
                    └── Alamofire

Hooks

The plugin allows you to provides hooks that will be called during the installation process.

pre_compile

This hook allows you to make any last changes to the generated Xcode project before the compilation of frameworks begins.

It receives the Pod::Installer as its only argument.

post_compile

This hook allows you to run code after the compilation of the frameworks finished and they have been moved to the Rome folder.

It receives the Pod::Installer as its only argument.

Example

Customising the Swift version of all pods

platform :osx, '10.10'

plugin 'cocoapods-rome', 
    :pre_compile => Proc.new { |installer|
        installer.pods_project.targets.each do |target|
            target.build_configurations.each do |config|
                config.build_settings['SWIFT_VERSION'] = '4.0'
            end
        end

        installer.pods_project.save
    },
    :post_compile => Proc.new { |installer|
        puts "Rome finished building all the frameworks"
    }

target 'caesar' do
    pod 'Alamofire'
end

More Repositories

1

CocoaPods

The Cocoa Dependency Manager.
Ruby
14,507
star
2

Specs

The CocoaPods Master Repo
6,690
star
3

Xcodeproj

Create and modify Xcode projects from Ruby.
Ruby
2,334
star
4

CocoaPods-app

A full-featured and standalone installation of CocoaPods.
Swift
1,228
star
5

cocoapods-packager

CocoaPods plugin which allows you to generate a static library from a podspec.
Ruby
1,145
star
6

cocoapods-deintegrate

A CocoaPods plugin to remove and de-integrate CocoaPods from your project.
Ruby
1,081
star
7

Molinillo

A generic dependency resolution algorithm.
Ruby
417
star
8

pod-template

An opinionated template for creating a Pod.
Ruby
394
star
9

Rainforest

Automate the tasks necessary to develop on CocoaPods
Ruby
213
star
10

CLAide

A small command-line interface framework.
Ruby
194
star
11

Core

The models used within the CocoaPods gem
Ruby
157
star
12

cocoapods-try

CocoaPods plugin which allows to quickly try the demo project of a Pod.
Ruby
132
star
13

cocoapods-acknowledgements

CocoaPods plugin that generates a plist which includes the installation metadata
Ruby
110
star
14

cocoadocs.org

Static generator for CocoaDocs.org
Ruby
95
star
15

CPDAcknowledgements

Show your CocoaPods dependencies in-app.
Objective-C
87
star
16

cocoapods-downloader

A small library that provides downloaders for various source types (HTTP/SVN/Git/Mercurial)
Ruby
84
star
17

cocoapods-plugins

Get info about available CocoaPods plugins.
Ruby
80
star
18

cocoapods.org

That website https://cocoapods.org/ - pretty useful
Slim
53
star
19

CocoaPodsExampleLibrary

A Simple Example Library for CocoaPods Best Practices
Objective-C
46
star
20

guides.cocoapods.org

The guides for CocoaPods
Ruby
46
star
21

Nanaimo

A native ruby implementation of ASCII plist parsing & serializing
Ruby
40
star
22

trunk.cocoapods.org

The authentication server for CocoaPods push
Ruby
38
star
23

cocoapods-appledoc

CocoaPods plugin which allows you to generate documentation for a pod spec using AppleDoc.
Ruby
36
star
24

blog.cocoapods.org

The blog for CocoaPods
HTML
34
star
25

fourflusher

A library for interacting with Xcode simulators.
Ruby
33
star
26

search.cocoapods.org

This is the CocoaPods search engine repo, please direct CocoaPods issues to the main CocoaPods repository.
Ruby
25
star
27

swift

Issue tracker for CocoaPods with Swift issues
23
star
28

cocoapods-integration-specs

The integration specs of CocoaPods
Objective-C
23
star
29

Cork

A delightful CLI UI module.
Ruby
22
star
30

cocoapods-metadata-service

A metadata generator service for GitHub projects
TypeScript
18
star
31

cocoapods-trunk

CocoaPods plugin for trunk
Ruby
17
star
32

metrics.cocoapods.org

The API for CocoaPods
Ruby
17
star
33

CocoaPods-objc

Provides support for working with CocoaPods from Objective-C.
Objective-C
16
star
34

cocoadocs-api

This is more of an API _for_ CocoaDocs to use than the other way around.
Ruby
15
star
35

cocoapods-search

CocoaPods plugin that allows you to search your pod spec repository for specific pods matching a query.
Ruby
14
star
36

Design

The design files for CocoaPods
13
star
37

cocoapods.github.com

User and developer documentation for CocoaPods
Ruby
12
star
38

cocoapods-docs

Simple gem which offers convenient access to the documentation of a Pod via cocoadocs.org.
Ruby
11
star
39

shared_resources

Shared resources for the cocoapods websites
HTML
11
star
40

cdn.cocoapods.org

Infra for the CocoaPods CDN
Ruby
10
star
41

Strata

Automate the tasks necessary to develop on the CocoaPods websites
Ruby
10
star
42

cocoapods-plugin-template

Ruby
9
star
43

feeds.cocoapods.org

Feeds or newly published Pods.
Ruby
8
star
44

cocoapods-test

CocoaPods plugin to run tests for a Pod
Ruby
7
star
45

cocoapods-repo-shard

Shard a CocoaPods specs repository
Ruby
6
star
46

cocoapods-stats

Statistics plugin for CocoaPods
Ruby
6
star
47

cocoapods-podfile_info

Get your dependency info out
Ruby
5
star
48

cocoapods-regression

Automation harness for CocoaPods regression tests.
Ruby
5
star
49

VersionKit

Ruby
5
star
50

stats.cocoapods.org

A server for receiving statistics and migrating data into metrics.cocoapods.org
Ruby
5
star
51

trunk.cocoapods.org-api-doc

Documentation for the Trunk API
4
star
52

claide-completion

CLI completion plugin for CLAide.
Ruby
3
star
53

Old-Specs

3
star
54

indexer.cocoapods.org

Trunk πŸ›„ πŸ‘‰ Algolia ⏱ indexer
TypeScript
3
star
55

Resolver-Integration-Specs

Ruby
2
star
56

peril-settings

Settings for CocoaPods' peril
TypeScript
2
star
57

CDN-Specs

A jsDelivr CDN compatible version of the CocoaPods Specs repo
2
star
58

Humus

Handles database migrations and states for all CP web projects.
Ruby
2
star
59

cocoadocs-queue

Queues pods for the cocoadocs workers
Ruby
2
star
60

cocoapods-test-specs

The test specs of CocoaPods
Ruby
2
star
61

cdn-staging.cocoapods.org

Staging environment for cdn.cocoapods.org
Ruby
1
star