ObjectiveRailsKit is an umbrella framework. Under the shadow of the umbrella sit three Rails-like sub-frameworks:
- ActiveResourceKit
- ActiveModelKit
- ActiveSupportKit
Import all three using the ObjectiveRailsKit.h monolithic header, as follows.
#import <ObjectiveRailsKit/ObjectiveRailsKit.h>
Then link against ObjectiveRailsKit.framework
.
- Add the ObjectiveRailsKit project to your application project.
- Add the ObjectiveRailsKit framework as a target dependency.
- Link your application binary against
ObjectiveRailsKit.framework
. - Add a new Copy Files build phase.
- Make the destination equal to Frameworks.
- Add
ObjectiveRailsKit.framework
to the list of products to copy.
Apple say, “Don't do it!”
They prefer that third-party developers deploy single stand-alone frameworks.
ObjectiveRailsKit comprises three Git sub-modules.
To build the kit, you need to check out those sub-frameworks from their Git repositories. You do this using:
git submodule update --init
You need to run this Git command even when incorporating ObjectiveRailsKit itself as a submodule of another Git repository.
ObjectiveRailsKit is an umbrella framework. iOS does not as yet conveniently support frameworks. Nevertheless ObjectiveRailsKit does build an iOS target.
The iOS target combines all three Active kits (support, model and resource)
into a single static library, libObjectiveRailsKit.a
.