Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

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

README.md

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

Releases

No releases published

Packages

No packages published

Languages