Visual studio remote iOS agent configuration error while building cordova app on iOS - ios

I want to connect to Remote Agent on Mac. I have npm, node.js installed. I have also remotebuild installed and it spits out the remotebuild certificate. I have Xcode installed and active too. But Once I try to connect from VS 2015 Tools for Apache Cordova and input the certificate info I get the following error:
An error occured to acquire certificate from https://(ip address).
I also tried using unsecure mode and just IP address. When I run remote test on ios terminal i get the following code:
Warning:
No server modules selected. Defaulting to configuration "modules":
{"taco-remote": { "mountPath": "cordova"} } Remote build server
listening on [https] port 3000 Please view/edit server configuration
at /Users/Bp0_0n/.taco_home/RemoteBuild.config. You many need to run
'remotebuild saveconfig' to generate it. You will have to restart the
server if you update the server configurations.
I am unable to figure out what is exactly needed to be done? Can any one help me?

Related

unable to deploy .net project using TFS IIS app deployment task

I am trying to deploy my project to IIS using TFS Winrm:IIS web app deployment task. I am new to this.
I am getting the following error'
"Deployment failed on machine xxx with following message : System.Management.Automation.Remoting.PSRemotingTransportException: Connecting to remote server xxx failed with the following error message : The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is accepting requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the destination to analyze and configure the WinRM service: "winrm quickconfig". "
I was able deploy the project to the same remote server using TFS Winrm: windows machine file copy task which is the prior step for web app deployment to IIS. Winrm service is running and when it type the "winrm quickconfig i am getting "winrm is already been configured".
What am i missing here ? please suggest. Thanks in advance.
The Winrm:IIS task is actually MSDeploy from Machine A to Machine B so for this to work you need to install MSDeploy on Machine B. You should then be ok to deploy from Machine A. Check this article out for more information and to see if you have all the pre-requisite. Also these articles have a bit more info.
https://learn.microsoft.com/en-us/azure/devops/pipelines/apps/cd/deploy-webdeploy-iis-winrm?view=azure-devops
https://marketplace.visualstudio.com/items?itemName=ms-vscs-rm.iiswebapp
The issue was resolved when i enable remote powershell remoting my remote machine using the command Enable-PSRemoting –force

TFS 2017 - Build Agent Connection Error - Failed to Connect

We have a 3 tier TFS environment: 1 application server, 1 build server and 1 DB Server. TFS 2017 is installed and configured. We are attempting to connect the Build server with the Application server using config.cmd but receive the following error:
PS D:\agent01> .\config.cmd
Connect:
Enter server URL > https://tfs.domain.com
Enter authentication type (press enter for Integrated) >
Connecting to server ...
An error occurred while sending the request.
Failed to connect. Try again or ctrl-c to quit
Firewall Settings:
Source: TFS Build Server
Destination: TFS Application Server
Ports: 443 and 8080
What other ports need to be allowed between servers?
Since you are using https as your public TFS url.
Please make sure you have created the Self Signed Certificate over TFS server and installed the same over build agent machine.
More details take a look at this similar issue here: TFS Build Agent Fails to Configure & Run with TFS2018 Self-Signed SSL Certificate
If you still have the same error after above actions, then please give a try with below steps which may help to narrow down the issue:
Make sure you add the user running the installation of agent, to the
pool and queue administrators
Try to use PAT if you are using username/passwoard
Temporarily turn off the firewall and try again
I reimported the wildcard certificate and I imported DigiCert High Assurance CA in Trusted Root on both TFS Build and Application server.

Unable to connect Visual Studio to remotebuild on El Capitan VM

I have a Cordova-Ionic application on Visual Studio (Microsoft Visual Studio Community 2015, Version 14.0.25123.00 Update 2). I am able to run the app on my android phone and all is good. I want to test the app by also running it on an iPhone/iOS simulator.
I have OS X El Capitan (version 10.11.6) running as a VM on virtual box. I have been following this guide (https://taco.visualstudio.com/en-us/docs/ios-guide/) to try to test the app on apple devices. I have installed version 0.12.9 Node.js and Xcode Version 8 Beta 4. I have also installed xcode command line tools, remote agent, homebrew. I have tried running 'remotebuild test' in a terminal and it executes successfully, ending with 'taco-remote test passed.' However, this is where the problems start.
To attempt to use secure remotebuild, i run 'remotebuild certificates reset' and then 'remotebuild certificates generate' in the terminal. I see
host: noyolks-iMac.local
port: 3000
PIN: 121422
I then run 'remotebuild'. On visual studios on my windows machine, I then go to tools -> options -> tools for apache cordova -> iOS configuration. I set 'Enable remote iOS processing' to 'true', 'host' to 'noyolks-iMac.local', 'port' to '3000', 'secure mode' to 'true', 'security pin' to '121422'. However, when i press ok, i see the following error popup 'Unable to connect to remote iOS build server. Underlying exception: The remote name could not be resolved: 'noyolks-imac.local''.
I try using the IP instead in place of the host name as suggested in the guide. On OS X, i go system preferences -> network. I then see '10.0.2.15' under IP address. I go back to my windows machine. I try '10.0.2.15' in place of the 'host'. When i press ok, i see the following error popup 'An error occurred trying to acquire certificate from https://10.0.2.15.'.
Please note, I ensured that all the above was done within the 10 minutes window before the security pin expires.
Following the guide, I then tried to start the remote agent without secure mode. I run 'remotebuild --secure false'. Once again on visual studio on my windows machine, i try host 'noyolks-imac.local' first (with 'port' to '3000', 'enable remote iOS processing' to 'true', 'secure mode' to 'false') and i get the error popup 'Unable to connect to remote iOS build server. Underlying exception: The remote name could not be resolved: 'noyolks-imac.local''.
Once again, running without secure mode, i instead use the ip address in place of the host '10.0.2.15'. I get the error popup 'Unable to connect to remote iOS build server. Underlying exception: Unable to connect to the remote server'.
I have also tried a similar procedure using a friends mac book pro and have not been able to get this to work. Any help would be appreciated and please do feel free to ask for any other information you might need.
Thanks.
I'm an idiot. The problem was that I couldnt even ping my El Capitan VM. Changing the network adapter settings in virtualbox to 'bridged adapter' solved this.

Visual Studio Cordova OS X or IOS Remote connection

I am using Visual Studio Cordova to build IOS app remote build or debug feature.
I tried to connect remote server with secure and non secure method and getting different error.
First i generated certificate and use Host IP(Mac IP), security PIN and IOS device Support Folder details in Visual Studio > Tools > Tool for Apache Cordova > IOS Configuration.
Mac IP = got from ifconfig can be see in attached image.
Security PIN = Genrated by command "remotebuild certificates generate"
ISO Device Folder = 192.168.169.130\Applications\Xcode.app\Contents\Developer\Platforms\iPhoneOS.platform\DeviceSupport.
when tried with secure method. Image Attached
when tried with secure false method. Image Attached
started the server by remotebuild. Image Attached
RemoteBuild test passed. Image Attached
First, please ensure you've followed the steps mentioned in http://taco.visualstudio.com/en-us/docs/ios-guide/
And ensure the remotebuild is started on you Mac.
Second, ensure you can successfully ping the ip of your Mac using ping 192.168.x.x
And from the IPs provided, you may run into the issue mentioned in "Did you receive an error that relates to your certificate?".
To fix the certificates error: In secure mode, you have not set up certificates correctly. On the Mac, you can re-set up your certificates. Close remotebuild using Ctrl + C. Enter on the command line:
remotebuild certificates reset (When prompted, type Y and then type Enter)
remotebuild certificates generate
Then enter the new pin in VS and connect.

Cordova visual studio ios agent configuration

I am trying to test my Cordova application in iOS, I followed all the steps that included in https://msdn.microsoft.com/library/dn757054.aspx#ios
When configuring Visual Studio -->tools-->options--->tools for Apache Cordova, I get this error :
An error occurred trying to acquire certificate from [Host].
I have an Apple developer ID, and I am already logged in in Xcode.
I solved this issue by placing the IP address of the host in the Host field, rather than the host name.
Be sure after doing all of this to also type remotebuild on the command line of the mac to prepare it to receive the build from your pc :-) ... Think of it like bluetooth pairing..
Replace host name using IP address MacBook and try again.
If this does not work then following are steps to reset remotebuild:
first stop server using following command:
cntrl + c
Execute following command to reset remotebuild certificates:
remotebuild certificates reset
Run following to command to regenerate remotebuild server:
remotebuild certificates generate
here, new secure pin number will be generated.
Following command to start remotebuild:
remotebuild
now try again, make sure 'Enable remote iOS processing' is true and 'Secure mode' is true and valid secure number is added.

Resources