How to set Environment variables with OS X 10.10 - environment-variables

I must be a little slow. I found an answer on here that worked temporarily until I restarted my computer. Now my environment variables are gone. All the answers I've found are for different versions of OS X (which are conveniently all a little different) and none seem to be up to date with OS X 10.10. All I want to do is set my ANDROID_HOME variable for Eclipse. Who would have thought this would be so difficult. What is THE way to permanently set ANDROID_HOME and other environment variables for my Mac.

I had a similar issue like yours. I am not sure how to permanently set an environment variable in Mac OS X 10.10, but I found a workaround that may solve your issue.
Please try to set ANDROID_HOME as an environment variable in eclipse.
This is how it's done:
select the class you wanna run
right click on it
go to: run as -> run configurations -> environment
here you can add the variable ANDROID_HOME with the path to your android sdk

Related

How do I solve Appium-desktop could not find my adb

I was trying to set a win10 Appium environment to do some Android automation test.
My adb environment var and Android devices are all set down (seen in attach screenshots).
However when I run the python or java test code, the appium server always tells me that my adb.exe and build tools folder could not be found. I spent aloooooooooot of time on finding the solution on google but nothing works.
adb devices
could not find adb.exe
could not find build-tools
sdk root
adb.exe root
From the screenshot you attached it seems like you have updated multiple paths separated by semi colon all under ANDROID_HOME environment variable.
Set the environment variables properly for ANDROID_HOME and Path as described below,
ANDROID_HOME: SDK root path only
PATH: %ANDROID_HOME%\platform-tools
PATH: %ANDROID_HOME%\tools
Don't forget to restart your appium server after the above changes are made.

Make electron app compatible with El Capitan

I am new to Electron, but the app I packaged (using electron-packager) for MacOS works fine on 10.12.X and 10.13.X but not on 10.10.5.
Is there a way to make it compatible with El Capitan 10.10.5 as well?
When I try to run the application, I get an error
Check with the developer to make sure SimpleMath works with this version of OS X. You may need to reinstall the application. Be sure to install any available updates for the application and OS X.
Actually, you can't do this.
Because they only support from version 10.11.6. I already tried this a lot of time.
But, I can't find any solution for that thing.
I believe your question is answered in official documentation here:
Build Instructions (macOS)
the document also states:
...
Official Electron builds are built with Xcode 9.4.1, and the macOS 10.13 SDK.
...

APPIUM is not Recognizing the Emulator

While Running the Script I am not getting any result in the Emulator. But in the APPIUM Server getting the logs as below.
I Searched the warning getting in the APPIUM server. They said Set the Android sdk path in Environment Variables. I set the ANDROID_HOME in user variables and platform-tools and the tools in the system variables. But still getting this Error.
How can I resolve this?

Jenkins and OS X Server on the same machine

I'm working on a Java App and on an iOs App. I will like to make continuous integration on both projects.
I know that Jenkins can be use for CI on iOs projects, but I have to use OS X Server for the iOs app.
So I would like to know if someone has configured a mac with OS X Server using CI with XCode Bots, and Jenkins on the same mac ?
Is there some constraints to respect configuring OS X Server and Jenkins on the same machine?
thanks
I haven't tried setting it up on OS X Server but I did it successfully on Mavericks using this guide here:
http://www.brianjcoleman.com/tutorial-setting-up-a-jenkins-automated-build-server-for-ios/
I'd say to just give it a try and see what happens.
So I just install OSX Server, config XCode CI on it, and check if integration working on my project.
After I install Jenkins, set it up for my other project and it's running pretty good.
I just have to try building the two project at same time, but I don't think that make any problem knowing that Jetkins and XCode bots create new process for each build.

Is OSX essential to run xCodeBuild, or could it run on a unix/linux box

I've not been able to find a definitive answer to this so far, does XCodeBuild have to run on OS X in order to build iOS apps, or could it run on unix/linux?
The intention is to get it set up with Jenkins for continuous integration.
At work we run all continuous integration on Mac servers despite being a Linux-only office. There is no availability of the Xcode tools on Linux. Even then the best support for those tools is only of the latest version of Mac OS.

Resources