Skip to content

Instantly share code, notes, and snippets.

@LutherBaker
Last active August 29, 2015 14:00
Show Gist options
  • Save LutherBaker/d808f62f84f6d306acfe to your computer and use it in GitHub Desktop.
Save LutherBaker/d808f62f84f6d306acfe to your computer and use it in GitHub Desktop.
Frank Cheatsheet
# install frank
$ sudo gem install frank-cucumber
# setup project
$ frank setup
$ frank build
$ frank launch
$ frank inspect
# from workspace root
xcodebuild \
-workspace app.xcworkspace \
-scheme Debug \
-xcconfig App/Frank/frankify.xcconfig \
-configuration Debug-Development \
-sdk iphonesimulator7.1 \
-destination platform='iOS Simulator',OS=7.1,name='iPad'\
DEPLOYMENT_LOCATION=YES \
DSTROOT="/Users/luther/Development/application/src/AppName/Frank/frankified_build" \
FRANK_LIBRARY_SEARCH_PATHS="/Users/luther/Development/application/src/AppName/Frank" \
clean \
build | analyze | archive | test
# launch the simulator with previously built app
$ ios-sim launch AppName/Frank/frankified_build/AppName.app --family ipad
# browser
http://localhost:37265
# workspace
$ frank build --workspace YourWorkspace.xcworkspace/ --scheme YourProject
# Pod.xconfig
#include "Pods.xcconfig"
#include "Foo/Frank/frankify.xcconfig"
#!/bin/sh
# brew install ios-sim
ios-sim launch Guided\ Plots/Frank/frankified_build/Plot\ Obs\ Test.app --family ipad
def app_path
ENV['APP_BUNDLE_PATH'] || (defined?(APP_BUNDLE_PATH) && APP_BUNDLE_PATH)
end
if (ENV['USE_SIM_LAUNCHER_SERVER'])
simulator = SimLauncher::Client.for_ipad_app(app_path)
else
simulator = SimLauncher::DirectClient.for_ipad_app(app_path)
end
Given /^I launch the app$/ do
# latest sdk and iphone by default
launch_app app_path, nil, "ipad"
end
Given /^I launch the app using iOS (\d\.\d)$/ do |sdk|
# You can grab a list of the installed SDK with sim_launcher
# > run sim_launcher from the command line
# > open a browser to http://localhost:8881/showsdks
# > use one of the sdk you see in parenthesis (e.g. 4.2)
launch_app app_path, sdk
end
Given /^I launch the app using iOS (\d\.\d) and the (iphone|ipad) simulator$/ do |sdk, version|
launch_app app_path, sdk, version
end
#!/bin/sh
xcodebuild \
-workspace app.xcworkspace \
-scheme Debug \
-xcconfig App/Frank/frankify.xcconfig \
-configuration Debug-Development \
-sdk iphonesimulator7.1 \
-destination platform='iOS Simulator',OS=7.1,name='iPad'\
DEPLOYMENT_LOCATION=YES \
DSTROOT="/Users/luther/Development/application/src/AppName/Frank/frankified_build" \
FRANK_LIBRARY_SEARCH_PATHS="/Users/luther/Development/application/src/AppName/Frank" \
clean \
build | analyze | archive | test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment