Testing iOS app deployment via Intune

Shira Hammann 41 Reputation points
2021-11-04T18:45:25.45+00:00

I am trying to test to see whether I have correctly implemented the Microsoft Intune SDK in my Xamarin Forms iOS application. The app is distributed via the AppStore, but I don't want to release until I've had a chance to test. I'm trying to test in a BYOD non-enrolled device scenario.

My preference would be to deploy to TestFlight and then deploy to Intune from there, but I'm not sure how to do that.

I'm working in Visual Studio for Windows 10, with a paired Mac.

I've tried building in AdHoc mode with a distribution provisioning profile, which is how we normally build our app in order to send it to Transporter for deployment in the AppStore, and then uploading the resulting .IPA to Intune as a line-of-business app, and granted permission to all users, but deployment fails on device with the message "This App Cannot be installed because its integrity could not be verified." Intune's portal.manage.microsoft.com site tells me when I click to "Install" that I should be getting a popup, but a slightly different one, "Untrusted Enterprise Developer". It instructs me to go to Settings -> General -> Device Management, but there's no such link. My suspicion is that those instructions may apply to MDM deployment, but not to the BYOD non-enrolled device deployment I'm attempting.

I also tried building in AdHoc mode with an AdHoc distribution provisioning profile that is provisioned for the device on which I'm attempting to test. In this situation, I'm able to set up the line of business app in endpoint.microsoft.com as before, but the app doesn't show up at all at portal.manage.microsoft.com on the device.

In-House doesn't seem to be an option when I go to create a Provisioning Profile at developer.apple.com, so I'm not sure how to try out an In-House distribution as described at https://medium.com/wso2-iot/how-to-export-in-house-developed-ios-app-as-an-enterprise-application-dc087bdd64c3, or if that's no longer an option.

I've been building with Rebuild All, not using the Archive feature, because that's how we normally build for deployment to the AppStore, in order to support more detailed Transporter messaging than is available through Visual Studio's Archive method of deployment.

What am I doing wrong? How can I successfully deploy a test build using Intune in order to test my SDK implementation?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
Microsoft Intune Application management
Microsoft Intune Application management
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Application management: The process of creating, configuring, managing, and monitoring applications.
874 questions
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,336 Reputation points Microsoft Vendor
    2021-11-08T08:31:07.953+00:00

    Hello,

    Welcome to our Microsoft Q&A platform!

    I think your main purpose is to generate ipa from the project containing Intune SDK, upload the ipa to testflight, and then test the Intune function. Now, you are not sure how to try out an In-House distribution as described at a link . The link is about enterprise program, if your account is the $99 Company Program, you don't need to refer to it.

    If you have add Intune packages to your project and have completed all functions, you could refer to https://learn.microsoft.com/en-us/xamarin/ios/deploy-test/app-distribution/app-store-distribution/?tabs=windows to distribute the app.

    I'm afraid your biggest confusion is how to create a Provisioning Profile, refer to the following steps:

    1. go to https://developer.apple.com/account/resources/profiles/list and login your appledeveloper account.
    2. add a profile. Select Type( App store, because you want to use test flight) => Configure(select the App ID you created, select a certificate, fill in profile name) => Generate => Download

    Make sure you have create an app in https://appstoreconnect.apple.com/apps , sign in the Apple account in VS, and the profile is correct in your mac, then you could pair to mac.

    You could try Manual Provisioning with Distribution Certificate, Distribution Provisioning Profile,Remote Device target or iPhone target to archive a ipa , you also could select Automatic Provisioning with Distribution Certificate, Distribution Provisioning Profile, Remote Device target or iPhone target.
    The key point is the profile is correct. There is an easy way to verify that it is correct or not. Go to Xcode and open an empty project with the same bundleid, go to Signing&Capabilities select the downloaded profile and check if there are any error messages.

    Finally, you could right click the project , select Archive, then click Distribute , select AppStroe , selct the Signing Identity and Provisioning Profile to get the ipa, and upload this ipa by Transporter. After these steps, you can use TestFlight to test.

    You could also refer to how to distribute to registered devices, it doesn't need TestFlight.

    Best Regards,
    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    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 person found this answer helpful.

0 additional answers

Sort by: Most helpful