Closed kenny-evitt closed 5 years ago
Hey @kenny-evitt, this is related to Jasmin and parsing arguments.
Please use '=' instead white space.
npm run e2e -- --runType=sim.iPhone7
@SvetoslavTsenov Thanks! Any thoughts on the problem I ran into installing libimobiledevice via Homebrew?
It seem that you have some local issues and conflict with older versions. Not sure though. This is script that we use on our CI to install Appium. Just copy it in a file and give it a try.
`#!/bin/bash
source $HOME/.bash_profile APPIUM_VERSION="1.9.1"
if [[ $(xcodebuild -version) =~ "9." ]]; then APPIUM_VERSION="1.8.1" fi
install_ios_deps() { echo "Install Appium dependencies for iOS." { brew update brew uninstall --ignore-dependencies libimobiledevice && true brew uninstall --ignore-dependencies usbmuxd && true brew install --HEAD usbmuxd brew unlink usbmuxd && true brew link usbmuxd && true brew install --HEAD libimobiledevice brew uninstall --ignore-dependencies ideviceinstaller && true brew install ideviceinstaller --HEAD brew unlink ideviceinstaller && true brew link ideviceinstaller && true brew uninstall --ignore-dependencies ios-webkit-debug-proxy && true brew install ios-webkit-debug-proxy brew uninstall --ignore-dependencies carthage && true brew install carthage
carthage help | grep bootstrap
set +e
$(carthage help | grep bootstrap &> /dev/null)
EXIT_CODE=$?
set -e
if [ $EXIT_CODE == 0 ]; then
echo "Carthage installed."
else
echo "Failed to carthage!"
exit 1
fi
} &> "$HOME/logs/install-appium.log"
}
install_appium() { echo "Install Appium." { npm un -g appium -f || true npm i -g appium@$APPIUM_VERSION if [[ "$OSTYPE" == "darwin"* ]]; then cd /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent sh Scripts/bootstrap.sh -d || true cd - fi appium -v } &> "$HOME/logs/install-appium.log" }
set +e $(appium -v | grep $APPIUM_VERSION &> /dev/null) EXIT_CODE=$? set -e if [ $EXIT_CODE == 0 ]; then echo "Appium@$APPIUM_VERSION found." else if [[ "$OSTYPE" == "darwin"* ]]; then install_ios_deps fi install_appium fi`
@SvetoslavTsenov Thanks! Your install script has some of the same commands I ended-up running. Maybe the project README should be updated?
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
I've got a vanilla JavaScript NativeScript (NativeScript core) app.
Version numbers:
Contents of package.json:
I (mostly) followed the instructions in the project's current README. The only difference is that I installed the Appium and ios-deploy npm packages as dev dependencies instead of globally.
I wasn't able to install libimobiledevice via Homebrew on my first attempt:
I ended up updating macOS, Xcode, and Command Line Tools, and installing the 'HEAD' version of the usbmuxd Homebrew package. Then I was seemingly able to finish installing all of the dependencies listed in the README.
I created a GitHub Gist of my complete notes: