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

Update Templates to Make Developing a Maui Blazor MacCatalyst app a Better Experience #14219

Closed
Tracked by #12293
dustin-wojciechowski opened this issue Mar 27, 2023 · 3 comments · Fixed by #14196
Closed
Tracked by #12293
Labels
area-blazor Blazor Hybrid / Desktop, BlazorWebView area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) fixed-in-8.0.0-preview.4.8333 Look for this fix in 8.0.0-preview.4.8333! partner/macios Issues for the Mac / iOS SDK platform/macOS 🍏 macOS / Mac Catalyst t/bug Something isn't working

Comments

@dustin-wojciechowski
Copy link
Contributor

dustin-wojciechowski commented Mar 27, 2023

Description

This issue is an adaption of one for Xamarin-macios for maui: xamarin/xamarin-macios#17591
It can be difficult to get everything correctly aligned for publishing, so we might want to add comments to templates to show developers what they need to do depending on what they want to do.

A list of problems for Mac Catalyst are described here: #12293

  1. App rejected because: The product archive package's signature is invalid. Ensure that it is signed with your "3rd Party Mac Developer Installer" certificate. A commented section in csproj explaining what they need to do might help here.
  2. App rejected because: The product archive is invalid. The Info.plist must contain a LSApplicationCategoryType key, whose value is the UTI for a valid category. For more details, see "Submitting your Mac apps to the App Store". A commented section in the Info.plist might be helpful.
  3. App rejected because: Invalid bundle. The bundle supports arm64 but not Intel-based Mac computers. Your build must include the x86_64 architecture to support Intel-based Mac computers. A commented section in csproj explaining that if only x64 or arm64+x64 (but not just arm64) is valid for publishing would help.
  4. App rejected because: `Invalid Bundle. The key UIDeviceFamily in the app's Info.plist file contains one or more unsupported values '1'. We should probably validate this at build time.
  5. App rejected because: App sandbox not enabled. The following executables must include the "com.apple.security.app-sandbox" entitlement with a Boolean value of true in the entitlements property list [...]. A commented section in the Entitlements.plist might be helpful. Alternatively we could default to include this entitlement by default for release builds (but verify that we don't end up with builds that won't execute locally).
  6. "I had to add ITSAppUsesNonExemptEncryption to Info.plist." A commented section in the Info.plist might be helpful.

Action Items

  1. Add commented section to csproj for selecting correct runtime.
  2. Add commented section to csproj about code/package signing.
  3. Add com.apple.security.get-task-allow to Enlistments.Debug to allow use of Web Dev Tools during debugging.
  4. Add com.apple.security.app-sandbox and com.apple.security.network.client to Enlistments.Release to allow for publishing to App Store.
  5. Add ITSAppUsesNonExemptEncryption and LSApplicationCategoryType to Info.Plist.

Steps to Reproduce

  1. Create a new Maui Blazor app.
  2. Set configuration to Release
  3. Try to publish to the App Store.

Link to public reproduction project repository

https://github.com/dotnet/maui

Version with bug

8.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

macOS

Affected platform versions

macOS Ventura 13.0, macOS Ventura 13.1

Did you find any workaround?

No response

Relevant log output

No response

@dustin-wojciechowski dustin-wojciechowski added t/bug Something isn't working platform/macOS 🍏 macOS / Mac Catalyst area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) partner/macios Issues for the Mac / iOS SDK labels Mar 27, 2023
@drasticactions
Copy link
Contributor

drasticactions commented Mar 28, 2023

Are these issues specific to publishing MAUI UI Catalyst apps, or could they be hit if you're publishing .NET Catalyst apps in general?

@dustin-wojciechowski
Copy link
Contributor Author

@drasticactions Most are in general. We have a lot of these additions added in on the Xamarin-macios side: #14117

@PureWeen PureWeen added this to the Backlog milestone Mar 29, 2023
@ghost
Copy link

ghost commented Mar 29, 2023

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

@Eilon Eilon added the area-blazor Blazor Hybrid / Desktop, BlazorWebView label Mar 30, 2023
@samhouts samhouts modified the milestones: Backlog, .NET 8 Planning May 1, 2023
@ghost ghost locked as resolved and limited conversation to collaborators May 31, 2023
@samhouts samhouts added the fixed-in-8.0.0-preview.4.8333 Look for this fix in 8.0.0-preview.4.8333! label Jun 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Blazor Hybrid / Desktop, BlazorWebView area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) fixed-in-8.0.0-preview.4.8333 Look for this fix in 8.0.0-preview.4.8333! partner/macios Issues for the Mac / iOS SDK platform/macOS 🍏 macOS / Mac Catalyst t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants