question

MikeMendelow-8458 avatar image
0 Votes"
MikeMendelow-8458 asked WenyanZhang-MSFT commented

Xamarin ios App Crashes when deployed

Our Xamarin iPhone App works great on local emulators and local phone devices for both Debug AND Release configurations. When deployed to Testlfight and downloaded on iPhone device, the app immediately crashes.

Crash log (attached) shows a generic exception:

Exception Type: EXC_BAD_ACCESS (SIGABRT) Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000 VM Region Info: 0 is not in any region. Bytes before following region: 4373528576

Was also able to generate run logs (attached) for iOS 14 and 15 but I don't see anything helpful. iOS 15 log does show this, which might be relevant but I don't see an entitlement that matches.

Error getting value for entitlement 'com.apple.private.dt.xctest.internal-client': Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"

PC Visual Studio version 16.1.1.5 Xamarin 16.11.0.17 Xamarin.ios 15.0.0.8

Mac Xamarin.iOS version 15.0.0.8

Linker Behavior is "Link Framework SDKs Only" (If I try to use "Don't Link" I get a native linking error)

NuGet packages installed:

Newtonsoft.Json (13.0.1)

sqlite-net-pcl (1.8.116)

Xam.Plugins.Settings (3.1.1)

Xamarin.Auth (1.7.0)

Xamarin.Essentials (1.7.0)

Xamarin.Forms (5.0.0.2125)

Obviously have googled as much as I could but haven't found any solutions. Would really appreciate any and all suggestions - thank you so much!



dotnet-xamarin
· 8
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Due to the policy, there are appid and domain in your question, I have edited it. There is a Entitlements.plist in iOS project, it allows some permissions, you could check if you have checked unnecessary permissions. In addition, I'm afraid the Profile doesn't match the entitlements file's value if there is Extension in your project, refer to https://developer.apple.com/forums/thread/125048

0 Votes 0 ·

Thank you - I recreated the profile and redeployed but am still getting the crash. Do these mean anything to you?


Oct 21 17:10:37 backboardd(IOKit)[65] <Error>: 6E6359BD-9174-4D74-B9ED-5C0ECA8BAFA7: Event enqueue error:0xe00002e8 type:11 sender:0x11ef44d2005d4
Oct 21 17:10:37 backboardd(IOKit)[65] <Error>: 6E6359BD-9174-4D74-B9ED-5C0ECA8BAFA7: Event enqueue dropped:1 consecutive events

Error getting value for entitlement 'com.apple.private.dt.xctest.internal-client': Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"

0 Votes 0 ·

There is a possibility that your app are blocking the access to the Internet, you could try to open the settings of your application, then check if you have selected WLAN & Cellular Data. You could also open the entitlement.plist by View Code to check the key about network. This error is common on MAC programs, but I haven’t seen it on iOS. In addition, may I ask does this issue exist when you debug the app on your iphone? I mean that you depoly it by VS rather than downloading the app to deploy.



0 Votes 0 ·
Show more comments

0 Answers