unable to install .ipa file generated using msbuild

Roman, Jaimee Ann B 1 Reputation point
2021-11-02T07:55:44.767+00:00

We have a xamarin.ios app that is currently being packaged manually, meaning we build and archive the app then use xcode to create a .ipa file then manually upload the file into App Center. I am now trying to create an azure pipeline that will do the build, package and upload. I am able to create a .ipa file and successfully upload it to app center, however, when we try to install the app, we get the error This app cannot be installed because its integrity could not be verified. I am using the same certificate and provisioning profile that we use when we package the app manually.
I have tried using the msbuild task, as well as the xamarin.ios task but still i get the error when we try to install the app.

Developer technologies .NET Xamarin
Community Center Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sara Liu-MSFT 346 Reputation points Microsoft External Staff
    2021-12-07T09:37:05.09+00:00

    Based on the error messages, if possible, you could check the profile first, if you want to upload the app to AppStore , the distribution profile is necessary: Go to https://developer.apple.com/account/resources/profiles/ add sign in with your Apple developer account, create a distribution profile for your APP ID, then download it to your Mac.

    For more details, refer to https://learn.microsoft.com/en-us/xamarin/ios/deploy-test/app-distribution/app-store-distribution/?tabs=macos#creating-a-provisioning-profile

    After the above steps, you could try to archive the app by VS, not sure if you are using VS2019 in Windows or VS for Mac, but you could refer to documents about the detailed steps about publishing Xamarin.ios apps here:

    https://learn.microsoft.com/en-us/xamarin/ios/deploy-test/app-distribution/app-store-distribution/publishing-to-the-app-store?tabs=windows

    When you get the ipa , you could try to upload it by [Apple Transporter][1] and deploy the app to your device by TestFlight.

    If you just want to distribute the app for internal testing, try to check the developer profile, refer to https://learn.microsoft.com/en-us/xamarin/ios/deploy-test/app-distribution/app-store-distribution/?tabs=macos#creating-a-provisioning-profile

    and https://itunespartner.apple.com/movies/articles/transporter_getting-set-up#!

    But if it has no issue locally, but it just has this issue when you use the Azure DevOps pipeline, since Azure DevOps has its owner support site on the stack overflow forum, if possible, you could post your issue here: https://stackoverflow.com/questions/tagged/azure-devops

    If I have misunderstood this issue, feel free to let me know.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.