question

CraigMcNicholas-0692 avatar image
0 Votes"
CraigMcNicholas-0692 asked ·

App Centre UI Test Fails With Message Error: The .ipa file does not seem to be linked with Calabash framework. for Xamarin iOS

When publishing my ipa to test cloud I receive the above error. I have followed discussions in older articles:

https://forums.xamarin.com/discussion/59412/ipa-file-not-linked-with-calabash
https://forums.xamarin.com/discussion/85814/the-ipa-file-does-not-seem-to-be-linked-with-calabash-framework

etc.

I have double checked that I am:

  1. building in Debug

  2. My compiler directive looks like: DEBUG;ENABLE_TEST_CLOUD;

  3. I have added the code below to enable calabash in AppDelegate.FinishedLaunching

// starts calabash when built for test cloud
if ENABLE_TEST_CLOUD
Xamarin.Calabash.Start();
endif

The strange thing is if I remove the if compiler directive above and just put Xamarin.Calabash.Start(); in the function then it works as expected.

It's almost like my compiler directive is not being honoured but I have double and triple checked, see image below.

77943-image.png


dotnet-xamarinformsvs-testing
image.png (441.4 KiB)
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

CraigMcNicholas-0692 avatar image
0 Votes"
CraigMcNicholas-0692 answered ·

I managed to solve it.

My Debug configuration was set to iPhoneSimulator rather than iPhone. Changing this my configuration settings allowed this to build correctly and now works with test cloud

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ColeXia-MSFT avatar image
0 Votes"
ColeXia-MSFT answered ·

Hello,

Welcome to Microsoft Q&A!

I'm not quite sure if this is the problem, but could you try to modify your code as below

// add # at beginning
#if ENABLE_TEST_CLOUD
            Xamarin.Calabash.Start();
#endif



If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

thanks for the suggestion, I accidentally omitted the hash in my sample code, I do have this and unfortunately didn't work.

I managed to work it out and will post below, thanks.

0 Votes 0 ·