openjdk version "13.0.10" 2022-01-18
OpenJDK Runtime Environment Zulu13.46+15-CA (build 13.0.10+5-MTS)
OpenJDK 64-Bit Server VM Zulu13.46+15-CA (build 13.0.10+5-MTS, mixed mode, sharing)
Synergy server jar v.3.0.17
npm v.8.5.0
node v.16.14.2
I want to run automated tests on my real device (iPhone SE, OS: 14.6 [cannot update OS]). I run WebDriverAgentRunner on my device in Xcode (v.13.3), testing starts on my real device:
/**
Never ending test used to start WebDriverAgent
*/
- (void)testRunner
{
FBWebServer *webServer = [[FBWebServer alloc] init];
webServer.delegate = self;
[webServer startServing];
}
Running Synergy server (session on http://localhost:7777).
Added synergy server url to my driver.properties file:
SYNERGY.URL=http://localhost:7777
DEVICE.CATEGORY=Phone
DEVICE.ID=device-id--
APP.PATH=https:path--
But when I run testng.xml file in IntelliJ, I get an error on methodSetup method which is:
#BeforeMethod(alwaysRun = true)
#Parameters({"Environment"})
public void methodSetup(String env, Method method) {
IOSSynergyMobileDriver.getInstance().setScreenOrientation(screenOrientation);
DeviceCapabilities capabilities =
IOSSynergyMobileDefinition.getIOSCommonDesiredCapabilities(
DriverProperties.getInstance().getDeviceId(),
DriverProperties.getInstance().getAppBinaryPath(),
DriverProperties.getInstance().getAppId(),
DriverProperties.getInstance().getVerifyNetworkConnectivity());
capabilities.addCapability("AppLaunchArguments",
RestrictionFactory
.getInstance(
this.getTestGroup()
)
.getAppLaunchArgs()
.toString()
);
IOSSynergyMobileDriver.getInstance().getIOSDriver(
DriverProperties.getInstance().getSynergyUrl(),
capabilities);
initTestSteps();
}
And the error is:
java.lang.AssertionError: getIOSDriver(): Exception occurred instantiating IOSDriver. Exception: com.synergy.core.exceptions.SessionNotStartedException: [{"results":"Session 278b848c-442c-4806-a789-25f2e68f8588 failed to start with error: Unable to find ios_webkit_debug_proxy on your path! Is it installed and available? See the Synergy Server README for details but it can easily be installed via 'brew install --HEAD ios-webkit-debug-proxy' on MAC."},{"results":"Session 278b848c-442c-4806-a789-25f2e68f8588 failed to start with error: Unable to find libimobiledevice packages on your path! Is it installed and available? See the Synergy Server README for details but it can easily be installed via 'brew install libimobiledevice' on MAC."},{"results":"Session 278b848c-442c-4806-a789-25f2e68f8588 failed to start with error: Unable to find ios-deploy on your path! Is it installed and available? See the Synergy Server README for details but it can easily be installed via 'brew install ios-deploy' on MAC."},{"results":"Session 278b848c-442c-4806-a789-25f2e68f8588 failed to start with error: Unable to find Appium on your path! Is it installed and available? See the Synergy Server README for details but it can easily be installed via 'npm install -g appium' on MAC and windows."},{"results":"Session 278b848c-442c-4806-a789-25f2e68f8588 failed to start with error: The device at 00008030-000A0D012152402E did not respond! Is the device online and reachable?"}]
Can anyone clarify what can cause this issue, please?
Note: I've removed node and moved it to usr/local/bin path (opt/homebrew/bin was set as path for node before) but that didn't help. Now I see that appium, ios-deploy and ios_webkit_debug_proxy are also in /opt/homebrew/bin folder, maybe that can be the problem?
I've tried reinstalling node so that it is inside usr/local/bin and updated Xcode to use the latest release, also I tried different versions of Synergy server. No results, the same error.
Related
While running
docker -v
on MacOs Sierra 10.13.3 following error is printed and docker exists
failed MSpanList_Insert 0x8f1000 0x81d2db0339 0x0
fatal error: MSpanList_Insert
runtime stack:
runtime.throw(0x80d7ab)
/usr/local/go/src/runtime/panic.go:491 +0xad fp=0x7ffeefbfef10 sp=0x7ffeefbfeee0
runtime.MSpanList_Insert(0x846e88, 0x8f1000)
/usr/local/go/src/runtime/mheap.c:692 +0x8f fp=0x7ffeefbfef38 sp=0x7ffeefbfef10
MHeap_FreeSpanLocked(0x843a80, 0x8f1000, 0x100)
/usr/local/go/src/runtime/mheap.c:583 +0x163 fp=0x7ffeefbfef78 sp=0x7ffeefbfef38
MHeap_Grow(0x843a80, 0x8, 0x0)
/usr/local/go/src/runtime/mheap.c:420 +0x1a8 fp=0x7ffeefbfefb8 sp=0x7ffeefbfef78
.....
I've re-installed docker from docker.com and reboot the system several times. The problem does not go away
This is definitely caused by older versions of go running on osx.
For me I removed older versions of go I had installed via brew, you can see all go's on your system by doing
which -a go
make sure you only have one and it's a recent version.
Next you should reinstall the tool to make sure you have a version of it compiled on a recent version of go.
This would probably be docker CE for osx https://store.docker.com/editions/community/docker-ce-desktop-mac
My issue was with kubectl so I did gcloud components install kubectl instead.
How can I install an app with "-t: Allow test APKs to be installed." using appium.
i am getting the following error:
MJSONWP] Encountered internal error running command: Error: Remote
install failed: pLocation:automatic, pLang: , pRegn:
pLocation(NoSIM):english_us, pLang: en, pRegn: US
pkg: /data/local/tmp/b388778c9058a24fd29dbe6b414a02e3.apk
Failure [INSTALL_FAILED_TEST_ONLY]
There is no problem with Appium itself, but adb install command failed.
Failure [INSTALL_FAILED_TEST_ONLY] is most likely caused by android:testOnly="true" in manifest xml file of your Android application.
You need to change this parameter value to false and rebuild project to get valid apk file.
I am using PhoneGap to build applications.
Application runs properly on emulator but when push notification plug in is added to project it gives build errors.
I searched this issue...initially it was found to be a common issue to many people...tried all solutions...but still the same build errors.
here is the plug in
sudo cordova plugin add phonegap-plugin-push
one of the solution said try out with 1.2.3 version of push notification i.e
sudo cordova plugin add phonegap-plugin-push#1.2.3
There were no errors using this version but then it is older version want a solution with the latest version.
The latest is working on windows machine but not on MAC.
Here is the detailed error when used latest version
ANDROID_HOME=/Users/bunty/Library/android-sdk-macosx
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
> Could not find any version that matches com.android.support:support-v13:23+.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/support-v13/maven-metadata.xml
https://repo1.maven.org/maven2/com/android/support/support-v13/
Required by:
:android:unspecified
> Could not find any version that matches com.google.android.gms:play-services-gcm:+.
Searched in the following locations:
https://repo1.maven.org/maven2/com/google/android/gms/play-services-gcm/maven-metadata.xml
https://repo1.maven.org/maven2/com/google/android/gms/play-services-gcm/
Required by:
:android:unspecified
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 37.885 secs
Error: Error code 1 for command: /Users/bunty/Documents/ParsianaApp/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/bunty/Documents/ParsianaApp/platforms/android/build.gradle,-PcdvBuildArch=arm,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
Can anyone help on this ?
If you read the install guide
You will need to ensure that you have installed the following items
through the Android SDK Manager:
Android Support Library version 23 or greater
Android Support Repository version 20 or greater
Google Play Services version 27 or greater
Google Repository version 22 or greater
You can do it manually or using this command:
android update sdk --no-ui --filter "extra"
Dont use sudo for installing. It causes permissions issues.
When I run Appium doctor it shows:
Running iOS Checks
✖ Unknown SW Version Command: Error: Command failed: /bin/sh -c sw_vers -productVersion
/bin/sh: sw_vers: command not found
Appium-Doctor detected problems. Please fix and rerun Appium-Doctor.
Can anyone help let me know what is the wrong here?
running this solved my problem:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
You need to install the command line tools as marked in your message:
✖ Xcode Command Line Tools are NOT installed
From osxDaily:
Launch the Terminal, found in /Applications/Utilities/
Type the following command string:
xcode-select --install
A software update popup window will appear that asks: “The xcode-select command requires the command line developer tools. Would you like to install the tools now?” choose to confirm this by clicking “Install”, then agree to the Terms of Service when requested (feel free to read them thoroughly, we’ll be here)
Wait for the Command Line Tools package download to complete, it’ll be about 130MB and installs fairly quickly depending on your connection speed
The installer goes away on its own when complete, and you can then confirm everything is working by trying to use one of the commands that were just installed, like gcc, git, svn, rebase, make, ld, otool, nm, whatever you want from the list below. Assuming the installation went uninterrupted, the command will execute as expected. This also means you can compile and install things from source code directly without having to use a package manager. Enjoy your new unix command line toolkit!
Have you tried upgrading to the latest Appium version? Are you installing Appium through terminal? My appium-doctor issues were fixed after I installed Appium through terminal and updated the path variables in .bash profile. Appium desktop application is different than one installed through command line.
There are only two possible area which causing that error:
You need to keep all path veriable updated and correct in .bash_profile
You must install
XCode
NodeJS
properly. You must have all permission to access those.
Install all latest version of following things
JDK (Java Development Kit),
Xcode ,
Command Line tools ,
APPIUM For MAC OS
In my case, xcode command line tool isn't set. Simply go to Xcode>Preferences>Locations>Select desired Xcode version in Command Line Tools. OR from terminal follow Chhagan's answer xcode-select -s your path
I've seen a many problems about this, but I didn't get a solution.
My OS is Yosemite and current OpenCV is 2.4.9
I'm trying to install OpenCV with TBB, but when I do it by sudo port install opencv +debug +python27 +qt4 +tbb (through this SO question):
Rafaels-iMac:y3PQFyQhUG rafaelruizmunoz$ sudo port install opencv
+debug +python27 +qt4 +tbb
Warning: The Xcode Command Line Tools don't appear to be installed; most ports will likely fail to build.
Warning: Install them by running 'xcode-select --install'.
Warning: The Xcode Command Line Tools don't appear to be installed; most ports will likely fail to build.
Warning: Install them by running xcode-select --install'.
---> Computing dependencies for ffmpeg
---> Configuring ffmpeg Error: Failed to configure ffmpeg, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_ffmpeg/ffmpeg/work/ffmpeg-2.6/config.log
Error: org.macports.configure for port ffmpeg returned: configure failure: command execution failed Please see the log file for port ffmpeg for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_ffmpeg/ffmpeg/main.log
Error: Unable to upgrade port: 1
Error: Unable to execute port: upgrade ffmpeg failed
And there are not any logs on those paths.
I've tried (support from SO and MacPorts).
port selfupdate
port upgrade ffmpeg
port clean x264
port upgrade outdated
port -f selfupdate
but nothing happened.
Does anyone have a clue?
Thank you in advance.
EDIT: Doing xcode-select --install doesn't resolve anything.
The code that produces this warning is at http://trac.macports.org/browser/trunk/base/src/port1.0/portutil.tcl?marks=3279-3289#L3266. On 10.10, it checks whether /Library/Developer/CommandLineTools/usr/include exists and /Library/Developer/CommandLineTools/usr/bin/make is executable. Since that's not the case on your system, the Command Line Tools have not been successfully installed.
After running xcode-select --install, a dialog box should pop up that allows you to click "Install" to install the Command Line Tools. See http://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x/ for screenshots.
Once you installed those, your build should work. If it doesn't, you'll have to upload the contents of the main.log for further diagnosis.