-
Notifications
You must be signed in to change notification settings - Fork 2
Installation
Anton edited this page May 18, 2017
·
1 revision
Navigate to the application targets’ “Build Phases” settings tab, click the “+” icon and choose “New Run Script Phase” to add the script below. Adjust the order of the Build phases, and Move the script right below the "Target Dependencies" task.
SCRIPT_LOC=$(find $SRCROOT/.. -name modelgen-swift.py | head -n 1)
python $SCRIPT_LOC -o $PROJECT_DIR
- Edit the project's podfile
pod 'JSONModelKit', :git => 'https://github.com/AntonTheDev/JSONModelKit.git'
- Install JSONModelKit by running
pod install
The installation instruction below are a for OSX and iOS, follow the extra steps documented when installing for iOS.
- Create/Update the Cartfile with with the following
#JSONModelKit
git "https://github.com/AntonTheDev/JSONModelKit.git"
- Run the update, and fetch dependencies into a [Carthage/Checkouts][] folder, then in the application targets’ “General” settings tab, within the “Embedded Binaries” section, drag and drop each framework for use from the Carthage/Build folder on disk.
$ carthage update
- Navigate to the targets’ “Build Phases” settings tab, click the “+” icon and choose “New Run Script Phase”. Create a Run Script with the following content:
/usr/local/bin/carthage copy-frameworks
- Add the paths to the frameworks you want to use under “Input Files” within the carthage build phase as follows e.g.:
$(SRCROOT)/Carthage/Build/iOS/JSONModelKit.framework
- Clone the JSONModelKit repository, copy the Source Folder into your project's root directory, and add it to your project
A Good Day Production
LinkedIn | Twitter @AntonTheDev