This was what broke the code for me. Found out after getting previous commits working and narrowing it to this:
iOS app crashes on launch with Xamarin.iOS
I've successfully published our app via Xamarin Forms in Android, but I'm running into some issues for iOS. I can run a release build using a distribution cert and profile successfully on a simulator, but when I try to build an IPA and run it on a physical device the app installs and launches just for a second before crashing.
Here's what I've tried:
- Recreating the provisioning profile and certificate
- Using VS to generate the profiles and certs for me
- Removing Linking Behavior for the app
- Adding this mtouch argument as suggested by the below forum: --aot=nopagetrampolines,ntrampolines=40960,nrgctx-trampolines=40960,nrgctx-fetch-trampolines=256,ngsharedvt-trampolines=4096,nimt-trampolines=4096
- Forum with suggested workaround for an issue that sounds similar, but doesn't work for me: https://github.com/xamarin/xamarin-macios/issues/10086/
- Using a different Mac and Windows VS to create the IPA
- Running the IPA on different devices, all crash on app launch
- Uninstalling VS and Xcode and reinstalling them
- Downgrading Xamarin.iOS and trying to build again
- Restarting my computer
Looking at the Device Log I see these messages before it crashes:
Dec 9 17:59:47 kernel(Sandbox)[0] <Error>: Sandbox: <PACKAGENAME>(5751) deny(1) sysctl-read kern.bootargs
Dec 9 17:59:47 kernel(Sandbox)[0] <Error>: Sandbox: <PACKAGENAME>(5751) deny(2) file-test-existence /private/etc/.mdns_debug
Dec 9 17:59:47 kernel(Sandbox)[0] <Error>: Sandbox: <PACKAGENAME>(5751) deny(2) file-test-existence /usr/bin/gdb Dec 9 17:59:47 kernel(Sandbox)[0] <Error>: Sandbox: <PACKAGENAME>(5751) deny(2) file-test-existence /bin/gdb
Dec 9 17:59:47 kernel(Sandbox)[0] <Error>: Sandbox: <PACKAGENAME>(5751) deny(2) file-test-existence /sbin/gdb Dec 9 17:59:47 kernel(Sandbox)[0] <Error>: Sandbox: <PACKAGENAME>(5751) deny(2) file-test-existence /usr/bin/lldb Dec 9 17:59:47 kernel(Sandbox)[0] <Error>: Sandbox: <PACKAGENAME>(5751) deny(2) file-test-existence /bin/lldb
Dec 9 17:59:47 kernel(Sandbox)[0] <Error>: Sandbox: <PACKAGENAME>(5751) deny(2) file-test-existence /sbin/lldb Dec 9 17:59:47 mDNSResponder[110] <Notice>: [Q332] Received UDP DNS Message 94 bytes from <private>:53 to <private>:58419 via en0 (0xc)
Any other thoughts or suggestions would be much appreciated. This has been quite a challenge the past day and a half.
-
Brad Germain 96 Reputation points
2020-12-10T18:01:47.497+00:00