Skip to content

Commit

Permalink
Add standalone Podfile example
Browse files Browse the repository at this point in the history
  • Loading branch information
jugutier committed Jun 22, 2018
1 parent 2d81bb0 commit 6dea298
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,15 @@ Xcode, e.g. for a Swift script.
$ gem install cocoapods-rome
```

## Usage
## Important

Write a simple Podfile like this:
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

```ruby
platform :osx, '10.10'
Expand All @@ -25,6 +31,30 @@ target 'caesar' do
end
```

### iOS

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

```bash
Expand All @@ -39,6 +69,9 @@ Rome/
└── Alamofire.framework
```

## Advanced Usage


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

```ruby
Expand Down

0 comments on commit 6dea298

Please sign in to comment.