Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Camin committed Mar 31, 2018
1 parent f9755ea commit ea2912c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,35 @@ $ tree Rome/
Rome/
└── Alamofire.framework
```

## 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.

#### Example

Customising the Swift version of all pods

```ruby
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
}

target 'caesar' do
pod 'Alamofire'
end
```

0 comments on commit ea2912c

Please sign in to comment.