Getting Started - iOS app crashes on launch

Mike Conrad 26 Reputation points
2021-03-01T20:32:12.387+00:00

Hi, I'm new to xamarin and have been working on getting setup to develop for iOS from a windows machine (I don't have a mac). I have gotten the same issue on two different machines, where I have been able to deploy to the phone, and everything seems fine up to the point that visual studio asks me to start the app to begin debugging. When I click the app, I get the Xamarin splash screen and then the app crashes or closes.

Here is what I have done:

  1. I'm running the newest Visual Studio preview and xamarin tools. (see the bottom of the post)
  2. Verfied iphone 6S reports it is up to date with iOS14.4
  3. I registered a paid apple developer account, which now shows as active
  4. Installed ITunes through the microsoft store and signed into my account. When prompted by the phone chose to trust the computer.
  5. I verified Hot Restart and Hot Reload are both enabled
  6. Used visual studio to generate a template xamarin cross platform app and verified the app builds and runs under the android emulator.
  7. I turned on automatic provisioning in iOS Bundle Signing. I signed in w/ my dev account and have my individual team selected.
  8. Selected my phone for the iOS app and told it to run. It deploys, showing up on the phone, and only gets to the xamarin splash screen before crashing.
  9. I repeated this on a second PC.

Some other things I checked / noticed:

  • I see my phone on the devices page of my developer account.
  • With one of my PCs, visual studio only seems to intermittently detect my phone.

Any help would be greatly appreciated as I don't have any idea how to start troubleshooting this. I'm trying to spin up a proof of concept for an app that uses bluetooth, so I need to be running on actual hardware to make much progress. Thanks!

Microsoft Visual Studio Community 2019 Preview
Version 16.9.0 Preview 5.0
VisualStudio.16.Preview/16.9.0-pre.5.0+31019.194
Microsoft .NET Framework
Version 4.8.03761

Installed Version: Community

Visual C++ 2019 00435-60000-00000-AA936
Microsoft Visual C++ 2019

Azure App Service Tools v3.0.0 16.9.685.47559
Azure App Service Tools v3.0.0

C# Tools 3.9.0-5.21116.10+7a63d79b60ffb33e919bee8056816f8f449d00ce
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Extensibility Message Bus 1.2.6 (master@34d6af2)
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.

IntelliCode Extension 1.0
IntelliCode Visual Studio Extension Detailed Info

Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual C++ Wizards 1.0
Microsoft Visual C++ Wizards

Microsoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC Package

Mono Debugging for Visual Studio 16.9.7 (df23ba6)
Support for debugging Mono processes with Visual Studio.

NuGet Package Manager 5.9.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

ProjectServicesPackage Extension 1.0
ProjectServicesPackage Visual Studio Extension Detailed Info

Visual Basic Tools 3.9.0-5.21116.10+7a63d79b60ffb33e919bee8056816f8f449d00ce
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools 16.9.0-beta.21102.9+7ce7132f1459095e635194d09d6f73265352029a
Microsoft Visual F# Tools

Visual Studio Code Debug Adapter Host Package 1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

VisualStudio.DeviceLog 1.0
Information about my package

VisualStudio.Foo 1.0
Information about my package

VisualStudio.Mac 1.0
Mac Extension for Visual Studio

Xamarin 16.9.000.270 (d16-9@d37bb7c)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer 16.9.0.316 (remotes/origin/d16-9@fdbf64026)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin Templates 16.9.68 (8e9b569)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Android SDK 11.2.0.21 (d16-9/93eab59)
Xamarin.Android Reference Assemblies and MSBuild support.
Mono: 5e9cb6d
Java.Interop: xamarin/java.interop/d16-9@d6d86b2
ProGuard: Guardsquare/proguard/v7.0.1@912d149
SQLite: xamarin/sqlite/3.34.1@daff8f4
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-9@9d8924d

Xamarin.iOS and Xamarin.Mac SDK 14.14.2.5 (3836759d4)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,294 questions
{count} votes

Accepted answer
  1. Nort ⠀ 671 Reputation points
    2021-05-06T16:53:55.457+00:00

    Problem solved, just update Visual Studio


0 additional answers

Sort by: Most helpful