Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add standalone Podfile example #69

Merged
merged 1 commit into from
Jun 22, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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