Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAUI 7.0 iOS Release build won't install on iOS 16 #11385

Closed
jdunaway opened this issue Nov 15, 2022 · 13 comments
Closed

MAUI 7.0 iOS Release build won't install on iOS 16 #11385

jdunaway opened this issue Nov 15, 2022 · 13 comments
Labels
area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) platform/iOS 🍎 s/needs-info Issue needs more info from the author t/bug Something isn't working

Comments

@jdunaway
Copy link

jdunaway commented Nov 15, 2022

Description

I'm using Azure DevOps to create an ad-hoc build for iOS for a .net 7 MAUI application (recently updated from .net 6 which had the same issue):

dotnet publish -f net7.0-ios -c Release -r ios-arm64 /p:ArchiveOnBuild=true

The .ipa file produced by the build works on iOS 15 devices but when I download it on an iOS 16 device the icon is blank and when I tap it to open it says the application cannot be installed at this time. Has anyone successfully published a MAUI release build for iOS 16?

Steps to Reproduce

  1. publish ad-hoc release build of .net maui application dotnet publish -f net7.0-ios -c Release -r ios-arm64 /p:ArchiveOnBuild=true
  2. Download it on an iOS 16 device.
  3. For me, the icon is blank and when I click the application I see a message saying "Unable to Install Please try again later."

Link to public reproduction project repository

(https://github.com/jdunaway/MauiAppReproiOS16ReleaseBuildIssue)

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 16

Did you find any workaround?

No.

Relevant log output

No response

@jdunaway jdunaway added the t/bug Something isn't working label Nov 15, 2022
@jdunaway jdunaway changed the title MAUI 7.0 iOS build won't install on iOS 16 MAUI 7.0 iOS Release build won't install on iOS 16 Nov 15, 2022
@tj-devel709
Copy link
Contributor

Hi @jdunaway, thank you for your feedback!

Starting in iOS 16, you will need to enable "Developer Mode" on the iphone in order to install .ipa files.
https://developer.apple.com/documentation/xcode/enabling-developer-mode-on-a-device

"The feature doesn’t affect ordinary installation techniques like buying apps from the App Store, or participating in a TestFlight team. Instead, Developer Mode focuses on scenarios like performing a Build and Run in Xcode, or installing an .ipa file with Apple Configurator."

Please try this and let us know if this fixes your issue. Thank you!

@tj-devel709 tj-devel709 added the s/needs-info Issue needs more info from the author label Nov 15, 2022
@ghost
Copy link

ghost commented Nov 15, 2022

Hi @jdunaway. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@jdunaway
Copy link
Author

Hi @tj-devel709. Thanks for the reply. This issue is only happening on the ad-hoc release build, which shouldn't require Developer mode. I do have developer mode enabled on the device though since it was required in order to run the debug build on the device. The debug build is working, but the release build will not install or open on the device.

@ghost ghost added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author labels Nov 15, 2022
@PureWeen PureWeen added area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) and removed s/needs-attention Issue has more information and needs another look labels Nov 16, 2022
@PureWeen
Copy link
Member

@rolfbjarne thoughts?

@jdunaway if you just use a new MAUI app does that work?

@jdunaway
Copy link
Author

@PureWeen Haven't tried that yet but will try when I get a chance and reply back. If it does still happen will also create a repo with the issue. Can't create a repo of the current solution since it has proprietary code in it.

@samirgcofficial
Copy link
Contributor

sudo dotnet publish -f net7.0-ios -c Release -r ios-arm64 /p:ArchiveOnBuild=true
This code will pick up developer certificate instead of Release certificate under release configuration, I have added both the certificate inside Debug and Release build. (.net 7 VS Mac 2022 ) any one facing same issue ?

@rolfbjarne
Copy link
Member

@rolfbjarne thoughts?

This looks weird, but the first step would be to figure out whether this is app-specific (does it happen with a new MAUI app?) or if it's something specific to one project (in which case we'll need a repro project).

@jsuarezruiz jsuarezruiz added the s/needs-info Issue needs more info from the author label Nov 17, 2022
@ghost
Copy link

ghost commented Nov 17, 2022

Hi @jdunaway. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@ghost ghost added the s/no-recent-activity Issue has had no recent activity label Nov 21, 2022
@ghost
Copy link

ghost commented Nov 21, 2022

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

@ghost ghost closed this as completed Nov 24, 2022
@jdunaway
Copy link
Author

jdunaway commented Dec 2, 2022

@PureWeen @rolfbjarne I was able to reproduce this issue with a file -> new maui project. Here is the repo: https://github.com/jdunaway/MauiAppReproiOS16ReleaseBuildIssue Please see the azure-pipelines.yml file for how I'm building this. I've also tried building this locally on the windows and mac side but I'm currently getting a Link.semaphore error. So you may want to try building this locally too. You will need to update the certificate to an adhoc iOS distribution certificate and update the provisioning profile to your own provisioning profile in order to reproduce. Also note the project settings I have set for the release build if you think that may be leading to the issue. These are the same as what I have in our production project that we are trying to release but can't release until the iOS 16 install issue is resolved. I get the same results with the reproduction repo: the ipa produced will install on iOS 15 devices but not iOS 16 devices. I'm able to debug on both iOS 15 and iOS 16 devices but the release build won't install on iOS 16 devices.

@ghost ghost removed the s/no-recent-activity Issue has had no recent activity label Dec 2, 2022
@jdunaway
Copy link
Author

jdunaway commented Dec 2, 2022

@PureWeen @rolfbjarne Please reopen this issue since the same issue occurs with a file -> new maui project and I have provided the reproduction repo in the previous comment.

@jdunaway
Copy link
Author

jdunaway commented Dec 6, 2022

@rolfbjarne @PureWeen @jsuarezruiz Please remove the needs-info label since the info has been provided.

@jdunaway
Copy link
Author

jdunaway commented Dec 6, 2022

We have resolved this issue based on this post in the apple developer forum: https://developer.apple.com/forums/thread/714600 The issue was with the bundle-identifier in our manifest.plist file. At one point we added Maui to the end of the bundle-identifier but removed it later and didn't update the manifest.plist file. It looks like this isn't an issue for iOS 15 but iOS 16 is more strict and won't allow you to install the application if the bundle-identifier isn't an exact match. Removing Maui from the bundle-identifier in the manifest.plist resolved this issue.

@jdunaway jdunaway closed this as completed Dec 6, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Jan 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) platform/iOS 🍎 s/needs-info Issue needs more info from the author t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants