Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Find credentials in keychain
# ...
# Create test account credentials ($USER + $PASS)
# ...
# Boot target simulator if not already booted
# ...
xcrun simctl get_app_container $TARGET_DEVICE_IDENTIFIER com.Wealthfront.CredentialHelper 2> /dev/null
if [[ $? -e 0 ]]; then
echo "Credential Helper already installed => Credentials were stored previously"
exit 0
echo "Installing Credential Helper"
# Build helper app
xcodebuild \
-workspace Wealthfront.xcworkspace \
-scheme CredentialHelper \
-sdk "$SDK_NAME" \
-derivedDataPath build \
-configuration DEBUG
# Install on booted simulator
xcrun simctl install $TARGET_DEVICE_IDENTIFIER ./build/Build/Products/Debug-iphonesimulator/
# Launch helper app and store credentials to shared keychain
xcrun simctl launch --console-pty $TARGET_DEVICE_IDENTIFIER com.Wealthfront.CredentialHelper "$USER" "$PASS"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment