Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Permanently allow Xamarin iOS app to accept incoming connection (Xamarin Test Cloud Agent)

My question is closely related with this question, as I am creating a Xamarin App and want to automatically test the UI. I've followed the instruction from the official documentation but once I do the last step, where I add Xamarin.Calabash.Start(); into my AppDelegate.cs, my Mac keeps on asking me, whether it allows incoming connections from the App.

Firewall Query to accept my application

I can manually acknowledge the firewall rule on each startup of the app and when starting the tests, since the application is redeployed over and over again. However - if I don't, weird things start happening: Sometimes it works (I'm not sure why, possibly if I started the app manually before), sometimes I get exceptions like

SetUp : System.Exception : Unable to start CalabashHostStrategyProxy

Is there any way to permanently enable my application (especially the Test Cloud Agent part) to accept incoming connections? Or at least to get rid of this dialog somehow automatically?

Would this affect my test-execution, if I run my tests in the Xamarin Test Cloud?

like image 956
Alexander Pacha Avatar asked Nov 09 '22 17:11

Alexander Pacha


1 Answers

Adding the iOS simulator app to the mac's firewall worked for me.

Have a look at the instructions over here: https://stackoverflow.com/a/40067738/1135847

(I didn't have to add the app I was trying to run, just the iOS simulator app).

like image 126
wislon Avatar answered Nov 15 '22 06:11

wislon