R.swift icon indicating copy to clipboard operation
R.swift copied to clipboard

Automate R.swift installation in Xcode project

Open tomlokhorst opened this issue 6 years ago • 2 comments

Implements https://github.com/mac-cain13/R.swift/issues/40

  • [x] Automatically add buildstep & file references to Xcode project
  • [x] Generate empty placeholder file, explaining user needs to build
  • [ ] Integrate with CocoaPods script_phase
  • [ ] Test (with different real-world projects)

Example: rswift install MyProject.xcodeproj --target MyTarget

tomlokhorst avatar Jan 03 '18 10:01 tomlokhorst

I think we should revive this PR. Not aiming fully automatic installation through CocoaPods, but to help with the integration.

What I'm imagining:

  1. Install R.swift using your favorite tool (easy as you probably use that tool quite often)
  2. Add R.swift.Library using your favorite package manager (easy as you probably use that tool quite often)
  3. Run rswift integrate and we'll ask you what workspace/project/target to integrate with and fix it for you (optionally you can pass arguments instead of answering questions)

Think this makes integration way easier for small projects and first time users.

mac-cain13 avatar Apr 26 '20 00:04 mac-cain13

Perhaps even one of those scary internet installation scripts, like brew has?

So that you only need one step.

rswift install can also add the R.swift.Library dependency using SPM or CocoaPods

tomlokhorst avatar Apr 26 '20 08:04 tomlokhorst

No longer relevant

tomlokhorst avatar Nov 09 '22 10:11 tomlokhorst