Hello I am trying to build my app on Mac but always get same error.
Error: An error occurred uploading to the build server
https://xxx.xxx.x.x:3000/cordova: Error: certificate is not yet
valid myAppp 1 Build
I wrote remotebuild start to command line on mac ant it is listening port 3000, What can I do to solve problem ?
Related
I'm trying to setup a Xamarin UITest without any luck.
When I try to run 'all tests', I get the following error:
execute: C:\Users\Brandon\AppData\Local\Android\android-sdk\platform-tools\adb.exe devices - exit code: 1
error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: Only one usage of each socket address (protocol/network address/port) is normally permitted. (10048)
List of devices attached
adb server version (39) doesn't match this client (36); killing...
could not read ok from ADB Server
* failed to start daemon *
error: cannot connect to daemon
ADB seems to be started just fine and the weird thing is that it seems to be using an adb version from another user, even though..
1) Tools > Options > Xamarin > Android is set to different path than the above-mentioned, for the Android SDK.
2) There is no system environment path variable that I can find for the above-referenced adb.exe path!
Am I missing something?
In my case it was Android Emulator version mismatch. Somehow Emulator got updated to the newer version:
After uninstalling Emulator, switching Feed to Microsoft instead of google and re-installing Emulator - error was gone and everything worked just fine.
When I tried to build cordova apps on my mac. I've set up remotebuild and it is working fine until I wanted to build on remote device.
This is the error I received:
Http 500: Unable to launch ideviceinstaller.
Please ensure that homebrew is installed and try running "brew install ideviceinstaller"
I've installed ideviceinstaller but it still couldn't build.
Can anyone help me with this?
Just testing a app. Trying to run the ios simulator. Got error message. Please help.
$ ionic build ios Running command: "C:\Program Files\nodejs\node.exe"
C:\Users\Johnson\desktop\ionic\todo\hooks\after_prepare\010_add_platform_class.js
C:/Users/Johnson/desktop/ionic/todo add to body class: platform-ios
Running command: cmd "/s /c
"C:\Users\Johnson\desktop\ionic\todo\platforms\ios\cordova\build""
'C:\Users\Johnson\desktop\ionic\todo\platforms\ios\cordova\build' is
not recognized as an internal or external command, operable program or
batch file. ERROR building one of the platforms: Error: cmd: Command
failed with exit code 1 You may not have the required environment or
OS to build this project Error: cmd: Command failed with exit code 1
As the error says
You may not have the required environment or OS to build this project
this refers to you not having iOS build tools (xcode) available on your machine. xcode is not available on windows machines.
You cannot build iOS apps on Windows machines. You may build for android, providing you have the android sdk + build tools installed.
I am pretty new to Cordova and iOS (and MAC). I have everything set up and using Visual studio + Networked Mac. Everything is working, I can build and deploy to Simulator and device.
But when I tried to install a plugin "statusbar", I am getting this build error
"Remote build error from the build server Build failed with error 404 Not
Found: cordova-plugin-statusbar: {1}"
I have installed it in the config.xml, but for some reason when building it is not finding the plugin. Do I need to install it on the mac too or should it be deployed with the rest?
Tried installing the plugin from the Mac terminal into the VS project folder on windows, but same error.
What am I missing?
I am trying to run my script on iPHONE 5 which is connected to my windows machine. I am getting below error:
ERROR: debug: Appium request initiated at /wd/hub/session
info: Configuring Safari session
ERROR: debug: Request received with params: {"desiredCapabilities":{"browserName":"Safari","device":"iPhone 5s white"}}
info: Trying to use mobile safari, version 18
info: Looking for built in app MobileSafari
ERROR: error: xcode-select threw error Error: Command failed: 'xcode-select' is not recognized as an internal or external command,
ERROR: operable program or batch file.
ERROR:
info: Got configuration error, not starting session
ERROR: error: Stderr: 'xcode-select' is not recognized as an internal or external command,
ERROR: operable program or batch file.
ERROR:
ERROR: error: Stdout:
ERROR: error: Could not prepare mobile safari with version '18': Error: xcode-select threw an error
ERROR: error: Failed to start an Appium session, err was: Error: xcode-select threw an error
info: Cleaning up appium session
info: Error: xcode-select threw an error
at D:\QM_Work\AppiumForWindows-1.0.0\AppiumForWindows\node_modules\appium\lib\helpers.js:523:10
at ChildProcess.exithandler (child_process.js:641:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit (child_process.js:810:5)
info: Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: xcode-select threw an error)","origValue":"xcode-select threw an error"},"sessionId":null}
POST /wd/hub/session 500 1379ms - 204b
As mentioned in the doumenations of Appium you need OSX to test iOS:
http://appium.io/slate/en/master/?ruby#toc_25
It is possible to run the tests from a windows machine but not the way you are probably thinking. You will still need a mac. Here are the requirements:
A mac on your network with Appium server running
Has Appium environment installed properly
Has the .app on the machine
If you have these three reqirements fulfilled and there is no firewall blocking network access to the mac then you can do it. You will have to actual tests on the windows machine but instead of specifying 127.0.0.1:8080 in the setup method as the IP address of Appium server you will replace it with this: yourmacsipaddress:8080 and this should execute the test properly.
Remember that you have to specify the path of the .app in the test which is running from your windows machine. But the catch is that the path has to be the path of the .app in the mac and not on your windows machine.
So the tests will run from your Windows machine but the installation of the app, the automation, and the testing will be done on the mac but you will get the "pass" or "fail" update on your Windows machine.
You cannot use Windows for iOS testing because Appium requires Instruments and some other native, OSX-only libraries to tell the phone what to do. (source)
Workarounds:
look into a mac mini hosting service, where you can run your iOS tests on a virtual machine.
buy a mac mini