-
Run
git submodule add http://github.com/jwfriese/Fleet
-
Add
Fleet.xcodeproj
to your project file -
In your test target, navigate to the
Link Binary with Libraries
section, and addFleet.framework
. -
In your test target, navigate to the
Target Dependencies
section, and addFleet
. -
(The following step is only necessary if you are using Fleet's storyboard-related features) To your test target, add a
Run Script
. The script will run a shell script included in Fleet source. For example, if you added the submodule like this:
git submodule add http://github.com/jwfriese/Fleet Externals/Fleet
The Run Script
should look like this:
$PROJECT_DIR/Externals/Fleet/Fleet/Script/copy_storyboard_info_files.sh "PRODUCTION_TARGET_NAME"
- Include Fleet in your
Podfile
:pod 'Fleet'
Make sure to put this in the section of your Podfile
calls for iOS
as the platform.
-
Run
pod install
-
(The following step is only necessary if you are using Fleet's storyboard-related features) To your test target, add a
Run Script
. The script will run a shell script preserved in the framework's Pod. Assuming yourPods
directory is in your source root, yourRun Script
would look like this:
${SRCROOT}/Pods/Fleet/Fleet/Script/copy_storyboard_info_files.sh "PRODUCTION_TARGET_NAME"
-
Include Fleet in your
Cartfile
:github "jwfriese/Fleet"
-
Run
carthage update --platform 'iOS'
-
In your test target, navigate to the
Link Binary with Libraries
section, and addFleet.framework
, which you should be able to find in yourCarthage/Build/iOS
directory -
To your test target, add a
Run Script
to call the Carthagecopy-frameworks
script:
/usr/local/bin/carthage copy-frameworks
Additionally, add as an input file Fleet's framework. The path probably looks something like this:
$(SRCROOT)/Carthage/Build/iOS/Fleet.framework
- (The following step is only necessary if you are using Fleet's storyboard-related features)
To your test target, add a
Run Script
. The script will run a shell script included in the framework. Assuming yourCarthage
directory is in your source root, yourRun Script
would look like this:
"$PROJECT_DIR/Carthage/Build/iOS/Fleet.framework/copy_storyboard_info_files.sh"
For further reference see Carthage's documentation.