Skip to content

jedlewison/cocoapods-wholemodule

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 

cocoapods-wholemodule

A CocoaPods plugin to use Whole Module Optimization for Swift files when compiling in release mode.

CocoaPods sensibly uses Apple's defaults for the Pods project, which means that if you want your pods to run with Whole Module Optimization enabled in release mode, you need to add a post install hook. The cocoapods-wholemodule plugin takes care of the boilerplate so you can add that in just one line.

Installation

$ gem install cocoapods-wholemodule

Usage with default configuration names

Add cocoapods-wholemodule to your Podfile:

plugin 'cocoapods-wholemodule'

Now, for configurations named Release, your Swift files will automatically be compiled with Whole Module Optimization enabled.

Usage with custom configuration names

Add an option specificying which configuration names should be compiled with Whole Module Optimization enabled:

plugin 'cocoapods-wholemodule', :wholemodule => 'CustomRelease'

Now, for configurations named CustomRelease, your Swift files will automatically be compiled with Whole Module Optimization enabled.

To specify multiple configuration names, supply an array of names:

plugin 'cocoapods-wholemodule', :wholemodule => ['CustomRelease', 'SpecialName']

Now, for configurations named CustomRelease and SpecialName, your Swift files will automatically be compiled with Whole Module Optimization enabled.

About

A CocoaPods plugin to use Whole Module Optimization for Swift files when compiling in release mode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages