Hi Gents,
I am struggling with configuring a workflow that will fire Xamarin UI tests for both Android and iOS platform.
In this topic I would like to describe issue related to iOS.
Assumptions:
I am using bitrise for about half a year and I have plently of working CI’s.
I have working Xamarin UI tests that I can fire locally.
I have configured everything (I hope so) correctly accordingly to: App Center Test - Visual Studio App Center | Microsoft Learn
What I know so far:
This is how looks the machine: https://github.com/bitrise-io/bitrise.io/blob/master/system_reports/osx-xamarin-stable.log so I know which simulators can I use and which android emulators can I create and launch.
Here are some tutorials: http://blog.bitrise.io/2016/02/29/xamarin-ci-with-bitrise-tutorial-part-1-getting-started.html
http://blog.bitrise.io/2016/03/05/xamarin-ci-with-bitrise-tutorial-part-2-testing.html however they are very not accurate, not so informative as I wish it could be, and there is no step by step tutorial actually. But I know I have to use environmental variables in my code.
Here is source of Xamarin iOS test step: GitHub - bitrise-steplib/steps-xamarin-ios-test
Here is source of Xamarin Android step: GitHub - bitrise-steplib/steps-xamarin-android-test
…but they have different inputs, so I assume different approaches, and NO DESCRIPTION at all!
(should I add that I am not familiar with GoLang, and can’t read this sources? )
First thing which is not clear and intuitive is:
- Should I have Xamarin Archive step or Xamarin Builder step before running Xamarin iOS Test step?
I testes with both configuration… and not going into details; still I am not sure. - In Xamarin iOS Test I do not provide IPA file, I provide only Xamarin project configuration and Xamarin platform. But is it the configuration of the UI test project itself, or Mobile.iOS project?
Finally what is strange, I tried various configurations and end up with this:
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: error : No installed provisioning profiles match the installed iOS signing identities.
What the heck? I copied workflow with exactly same configuration and provisioning profile, somehow I manage to build my solution withing Xamarin iOS Test step, but I get such strange error.
If anybody is willing to help I would be grateful. If you need more details I can provide of course.
If somebody can provide example working workflow - that would be marvelous!
Cheers,
G