This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
fi | |
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/CredentialHelper.app | |
# 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