FilePicker in .Net MAUI iOS version

Влад Тигинян 40 Reputation points
2023-09-19T07:15:14.1466667+00:00

I am developing an application on this platform. I'm using a file picker. It works great on Android. It also works on the Apple simulator. However, the application cannot be installed and launched on a physical apple device. I am following the Microsoft instructions. What I did:

  1. configured rights and capabilities User's image
  2. Created iCloud Container
  3. Сreated an application identifier in which I selected iCloud and indicated the iCloud identifier
  4. I created a profile in which I selected my application, indicated certificates and devices. User's image

However, when trying to run the application on a physical device, an exception occurs. error MT1006: Could not install the application '/Users/vornic/Library/Caches/Xamarin/mtbs/builds/APB.External.EDoc.Tools.Mobile/ac5ceb52ba84949ef05f2010c8c46c8b6cdec57d7e7bb094f70885e624f6db6b/bin/Debug/net7.0-ios/ios-arm64/device-builds/iphone12.1-16.6.1/APB.External.EDoc.Tools.Mobile.app' on the device 'iPhone 11 apb test': AMDeviceSecureInstallApplicationBundle returned: 0xe8008015. Is it possible that additional configuration is required?

Developer technologies .NET .NET MAUI
Developer technologies .NET Other
Developer technologies C#
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Leo Wagner de Souza 696 Reputation points
    2023-09-19T10:50:20.52+00:00

    Hello!

    It looks like your device is not provisioned on your Apple Developer account.

    Please check:
    https://developer.apple.com/documentation/xcode/distributing-your-app-to-registered-devices
    https://developer.apple.com/documentation/xcode/distributing-your-app-to-registered-devices#Register-devices-in-your-developer-account
    https://learn.microsoft.com/en-us/dotnet/maui/ios/deployment/publish-ad-hoc?tabs=vs#add-a-device

    Best Regards,

    Leo Wagner de Souza.


    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.


  2. Anonymous
    2023-09-21T04:23:33.9866667+00:00

    Hello,

    I find this issue is related to the VS, VS generate wrong key in the Entitlements.plist Please open your Entitlements.plist, change your <key>ICloudContainerIdentifiers</key> to <key>com.apple.developer.icloud-container-identifiers</key>

    Here is a document about iCloud entitlement, you can refer to it.

    Best Regards,

    Leon Lu


    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.

    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.