R.swift
R.swift copied to clipboard
Automate R.swift installation in Xcode project
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
I think we should revive this PR. Not aiming fully automatic installation through CocoaPods, but to help with the integration.
What I'm imagining:
- Install R.swift using your favorite tool (easy as you probably use that tool quite often)
- Add R.swift.Library using your favorite package manager (easy as you probably use that tool quite often)
- 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.
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
No longer relevant