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.
Related
I am trying to perform a remote debug over the internet, however, I receive the following error.
Error
Debugger Assertion Failure: "!"mkapistream::openConnection()""
in ..\win32src\rproxy.cpp at line 298
OK
Details >>
I have opened up the default PAServer port i.e. 64211, as well as the remote debugger port i.e. 64447 on my router and, can confirm that they are available from an external source.
I have tried with both Delphi XE3 which is my development environment as well as with a trial version of the new Delphi 10.3, however, both versions of Delphi throw the exact same error.
This error occurs, when I try using the Load Process|Remote and Attach to Process|Remote.
If I attempt the exact same process over a LAN connection everything works as expected, it only seems to be over a WAN which the problem occurs.
Below are my environment details:
Windows 10 - Version 1607 (OS Build 14393.2608)
Delphi XE3 Update 2 Enterprise - Version 17.0.4770.56661
PA Server (paserver.exe) - Version 17.0.4770.56661
Remote debugger (rmtdbg170.exe) - Version 17.0.4770.56661
and
Delphi 10.3 Architect Trial - Version 26.0.32429.4364
PA Server (paserver.exe) - Version 26.0.32429.4364
Remote Debugger (rmtdbg260.exe) - Version 260.1810.29.29349
I have also registered both libraries bordbk170.dll and bordbk170N.dll for Delphi XE3 as well as bordbk260.dll and bordbk260N.dll.
If I set up an VPN connection, I can remote debug over the WAN connection, but it seems as if the remote debugger just cannot resolve the cons over a straight WAN connection.
So, my question is the following:
Can one remote debug a Delphi application over a WAN connection?
You probably need to find out what port the remote debugger is looking for and redirect that using port forwarding on your local router to your PC
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?
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.
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.
While loading any new project in Visual Studio 2012 and connecting with Xamarin Build host provider, it gives error "Connection to Xamarin.iOS Build Host failed. Double click here to attempt to reconnect/select a server"
Followed below mentioned steps but none worked.
Tried to unpair and pair again from VS 2012 and MAC Build host provider
HKEY_CURRENT_USER\Software\Xamarin\MonoTouchVS\KnownServers remove this key from Registry but I was not able to find this registry
HKEY_CURRENT_USER\Software\Xamarin\MonoTouchVS\MonoTouchBuildServerAddress remove this registry key but didn't help.
Someone suggested to disable proxy by following below steps.
I had the some problem, all was configured well but got the same error. The solution for me, was to disable the proxy! on the windows machine
Hope that will help you
Could anyone please suggest how to disable proxy and on which PC Windows / MAC? And let me know if that helps you to resolve the issue?
Thanks..
Any other solution to get this issue resolved?
==========================
Updates on 24 July, 2014
Solution to my question above I found is: Network connection and constant PING to my MAC PC was broken and thats what causing the problem to connect to Visual Studio.
This works for my machine but not sure about yours.
Go to Xamarin Studio on your Mac, update Xamarin.
Reboot your Mac (just to be absolutely sure)
Startup the iOS Build Host on Mac.
Go to VS on your PC, when VS is trying to connect to the Build Host, make sure the IP address is correct (i.e. your Mac/build host machine IP).
If the IP Address is incorrect (which is my case), try manual connect by entering your Build Host IP Address and try to connect again.
Good luck.