xamarin / xamarin-macios

.NET for iOS, Mac Catalyst, macOS, and tvOS provide open-source bindings of the Apple SDKs for use with .NET managed languages such as C#
Other
2.44k stars 507 forks source link

MAUI iOS project on Mac crashes on open, no errors reported #20935

Closed jerodmotley closed 3 weeks ago

jerodmotley commented 1 month ago

<!-- 🚨 STOP 🚨 𝗦𝗧𝗒𝗣 🚨 𝑺𝑻𝑢𝑷 🚨 -->

Steps to Reproduce

  1. Created MAUI iOS project VS for Macbu
  2. Added binding library
  3. App crashes on open. When debugging, stops before app loads with nothing reported
  4. App works when binding library is not included

Expected Behavior

App loads up

Actual Behavior

App crashes with no errors reported. When connected to Mac in debug mode, debugging simply stops with no errors.

Environment

Visual Studio for Mac 17.6.12 (build 410) .NET SDK (Arm64) 8.0.302 .NET Runtime (Arm64) 8.0.6

Version information ``` ```

Build Logs

Example Project (If Possible)

jerodmotley commented 1 month ago

Archive 1.zip

jerodmotley commented 1 month ago

Archive 2.zip

jerodmotley commented 1 month ago

Archive 3.zip

jerodmotley commented 1 month ago

Linked from issue https://github.com/xamarin/xamarin-macios/issues/20809

rolfbjarne commented 1 month ago

It looks like there's a project missing, I get this warning when building BessamerTrust.csproj:

warning : The referenced project '../Maui.PDFView/Maui.PDFView.csproj' does not exist.

and then a few errors:

BessemerTrust/MauiProgram.cs(11,7): error CS0246: The type or namespace name 'Maui' could not be found (are you missing a using directive or an assembly reference?)
BessemerTrust/Views/PDFViewerPage.xaml.cs(2,7): error CS0246: The type or namespace name 'Maui' could not be found (are you missing a using directive or an assembly reference?)
BessemerTrust/Views/PDFViewerPage.xaml.cs(9,12): error CS0246: The type or namespace name 'PdfView' could not be found (are you missing a using directive or an assembly reference?)
microsoft-github-policy-service[bot] commented 1 month ago

Hi @jerodmotley. We have added the "need-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.

microsoft-github-policy-service[bot] commented 3 weeks ago

Hi @jerodmotley. Due to inactivity, we will be closing this issue. Please feel free to re-open this issue if the issue persists. For enhanced visibility, if over 7 days have passed, please open a new issue and link this issue there. Thank you.