zbulleit
zbulleit

Reputation: 21

iPad Crashes on Start Up Using Xamarin.Forms

I have been trying to test and debug on my iPad but I have not been able to get it to work. I develop on a PC and remotely build to a Mac onto an iPad Pro with iPadOS 15.2.1. It works fine when I build to a physical iPhone 11 with iOS 15.1. I even get it to work on an iPad Pro emulator. I went through the entire documentation on Microsoft and that was no help. I attached a YouTube video of my issue to help better illustrate the problem.

My iPad is provisioned for development on my Apple Developer Account.

I have tried placing breakpoints before the Forms.Init in the AppDelegate.cs and it doesn't reach that point. It does, however, reach my launch screen before it crashes.

I have also created a quick project in Xcode with the same bundle Id and the quick project runs as expected.

I am using Xcode 13.2.1 and Xamarin.Forms 5.0.0.2337.

Thanks for any help in advance.

Click here to see the issue

Upvotes: 2

Views: 400

Answers (3)

rkfdsam
rkfdsam

Reputation: 17

As per the same github comment shown above the statement the mtouch argument --weak-framework=SensorKit.framework/SensorKit worked for me instead of --weak-framework SensorKit

Upvotes: 1

zbulleit
zbulleit

Reputation: 21

What I had to do to work around this was set the deployment target lower (in my case 9.0) in my info.plist.

Upvotes: 0

ColeX
ColeX

Reputation: 14475

This is a known issue which reported here : https://github.com/xamarin/xamarin-macios/issues/9938 .

The possible workaround is

  1. Add --weak-framework SensorKit to the additional mtouch arguments.

  2. Switch linking option between Don't Link and Link Framework SDKs Only .

Upvotes: 1

Related Questions