iPad Crashes on Start Up Using Xamarin.Forms - ios

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

This is a known issue which reported here : https://github.com/xamarin/xamarin-macios/issues/9938 .
The possible workaround is
Add --weak-framework SensorKit to the additional mtouch arguments.
Switch linking option between Don't Link and Link Framework SDKs Only .

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

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

Related

iOS - Universal link detection not working on physical devices (Working every time on simulator)

Universal link working on simulator only every time when tap on it it will open application.
If i am directly run on device then it's not working it will just open safari not application. Same problem with .iPA file and TestFlight.
NOTES:
1. I am try to run on iOS 11.0 (iPhone 6s).
2. I have set and tried with debug and release both configurations.
can You put a sample piece of code? I will be happy to test on my devices MAD give some clues.
I found a lot of sample code in stack overflow about it.

Xcode Memory Graph Debugging Icon not showing

I've recently started working on an existing objc project and wanted to check the memory graph debugging tool. As I started a debugger with the app I realised it doesn't show in the debugging tools.
I tried it with another project (created a new swift project) and the icon suddenly did show again. But only for this project.
So my question now is if there're any settings in a particular project that can prevent the memory graph debugging tool from showing?
Any hints are appreciated.
I tried a lot of different simulators (iOS 9/10/11). I event tried rebooting my macbook because I read somewhere this could help ;-)
I'm using an objc only project with Xcode 9.1 or Xcode 9.2 beta 2.
This is my diagnostics selection in the scheme if that's related:
Step 1: shut down and restart your iPhone.
Step 2: quit and reopen Xcode.
This should make the button reappear.
For some reason, the button is not there when I test on the device, but it's there when I test on the simulator.
Hi I was having the same issue. It's actually hidden here:
It appears that the memory debugger will only work for newer devices. It definitely does appear on the iPhone 8 running iOS 11. On some of my older devices it does not appear. I'm not sure at this time what the cutoff is.

Xamarin - When try to deploy the build never ending

I'm developing xamarin application for both IOS and Androaid, when I'm try to publish the Ios appliaction to my iphone the build never ends and no error appear, I tring to upgrade my Xcode but this didn't help.
When I'm using the IOS simulator everything works fine, the build ends and the app run as expected. I tried all the solutions that I found on the internet but none of them help.
Is anybody encounter this problem and have solution for this issue??
enter image description here
Xamarin frameworks are updated as latest stable version on both of Visual Studio and MacOs?
Did you accept Apple New License Agreement on your apple account?
You can check logs. (Help->Xamarin->Open Logs)

Unable to profile using Instruments on iPad 1 using XCode 5

I have an application built against iOS 7, but targeted for iOS 5.1 since I only have an iPad 1 available for testing. It's an all native library, with very minimal iOS dependencies. I am able to run the app on my iPad just fine, but when I try to Profile it, XCode 5 immediately changes the status to 'Finished running on iPad', and the Instruments window shows a warning saying 'This device does not support this instrument'. I see this behavior regardless of which instrument I choose from the Instruments panel.
I have tried other suggestions from similar issues posted on Stackoverflow such as
1. Cleaning my app and rebuilding
2. Restarting XCode
3. Deleting my app from the device
4. Changing the deployment target from 'iPhone/iPad' to just 'iPhone'
None of these have helped me get over this problem. Is there something fundamentally not supported in the configuration that I am trying to run ? Since the app runs correctly on the iPad, this seems like just a problem with Instruments compatibility, so I welcome any comments / suggestions on resolving this.
Thanks.

Xcode: App builds, but "runs" and "finishes" at the same time

I have an app created from sample code I found online. I hooked up my iPod touch 4G to my computer and everything worked fine, app ran.
Then I hooked up my iPhone 3G to the computer, established provisioning profiles, etc. In the organizer the device shows up as a green dot, so we're good. The name of the device is right there next to the run button so that's a good sign. But when I hit run it says "build succeeded" and then goes directly to "finished running on " but nothing shows up on the app!
I've tried this with several apps now and all work on iPod touch, but none on iPhone.
Devices are running newest operating systems, 4.2 for the iPhone, Xcode version is the newest.
I had a different question with more than likely the same answer
App built with Xcode 4.2 ios 5.0 crashing when installed on iphone with ios 4.3.5
I found the solution here
Is it possible to target older iOS versions when using Xcode 4.2 and iOS 5 SDK?
by mmorris
I had to do what he clearly explained and 1 more thing:
Set the compiler in the Project and Target Build Set to LLVM GCC 4.2
That got the app running on my older devices
I had problem to run on simulator not on device.
Tried above options but didn't work for me.
Finally, Just Resetting Simulator did the trick.
Make sure you are targeting the least iOS version and SDK that you can in the build profiles (targets, summary, Devices, Deployment target). Also, check the error console (All Output) at the bottom right and see if there's some kind of problem occurring.

Resources