Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build crashes on iPadOS immediately when using Location #7801

Closed
justadaniel opened this issue Jun 6, 2022 · 9 comments
Closed

Build crashes on iPadOS immediately when using Location #7801

justadaniel opened this issue Jun 6, 2022 · 9 comments
Labels
area-essentials Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info platform/iOS 🍎 s/needs-info Issue needs more info from the author t/bug Something isn't working
Milestone

Comments

@justadaniel
Copy link

justadaniel commented Jun 6, 2022

Description

I'm trying to build an app I'm making that utilizes location to iPad. I've encountered this bug in Xamarin.Forms before. It pretty much comes down to the fact that iPads don't have a GPS, but location services still work thanks to location detection through WiFi. I don't know what is specifically going on under the hood, the kit is mainly for iPhone & Apple Watch, but Apple says that SensorKit is available to iPadOS as well.

Apple Docs: SensorKit

Steps to Reproduce

  1. Create a project.
  2. Utilize location services.
  3. Deploy to iPad.
  4. Crash on boot.

Version with bug

6.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS/iPadOS 14+

Did you find any workaround?

None

Relevant log output

Launched application '<AppID>' on 'Daniel Christmas’ iPad' with pid 31794
dyld[31794]: Library not loaded: /System/Library/Frameworks/SensorKit.framework/SensorKit
  Referenced from: /private/var/containers/Bundle/Application/00DCEA18-CEB4-40A7-B7E3-633DCA2CC3A1/<DisplayName>.app/<DisplayName>
  Reason: tried: '/System/Library/Frameworks/SensorKit.framework/SensorKit' (no such file)
Application '<AppID>' terminated (with exit code '' and/or crashing signal '6).
@justadaniel justadaniel added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels Jun 6, 2022
@justadaniel justadaniel changed the title Build crashes on iPadOS immediately. Build crashes on iPadOS immediately when using Location Jun 6, 2022
@Eilon
Copy link
Member

Eilon commented Jun 7, 2022

@justadaniel - can you please show the exact code you are using to get the location? Ideally, a complete project uploaded as a GitHub repo (not a ZIP). But at a minimum, showing the C# code that you used, including any relevant context. Thank you!

@Eilon Eilon added the s/needs-repro Attach a solution or code which reproduces the issue label Jun 7, 2022
@ghost
Copy link

ghost commented Jun 7, 2022

Hi @justadaniel. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@Eilon Eilon added the area-essentials Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info label Jun 7, 2022
@justadaniel
Copy link
Author

@justadaniel - can you please show the exact code you are using to get the location? Ideally, a complete project uploaded as a GitHub repo (not a ZIP). But at a minimum, showing the C# code that you used, including any relevant context. Thank you!

Here, I'll leave the previous issue on XF here for reference while I make a project. It is indeed happening due to a mixture of MTouchLink and calling location services apis. dotnet/macios#9938

@ghost ghost added s/needs-attention Issue has more information and needs another look and removed s/needs-repro Attach a solution or code which reproduces the issue labels Jun 7, 2022
@Eilon
Copy link
Member

Eilon commented Jun 7, 2022

@justadaniel thank you, that will be helpful to the investigation.

@justadaniel
Copy link
Author

@justadaniel - can you please show the exact code you are using to get the location? Ideally, a complete project uploaded as a GitHub repo (not a ZIP). But at a minimum, showing the C# code that you used, including any relevant context. Thank you!

Here's a link to the repo I just made. Be sure to build to a physical device.

Log:
dyld[39463]: Library not loaded: /System/Library/Frameworks/SensorKit.framework/SensorKit Referenced from: /private/var/containers/Bundle/Application/81B9CC16-616E-4C0C-9B8C-A2CCD1B7A909/DotNetMaui-LocationCrash.app/DotNetMaui-LocationCrash Reason: tried: '/System/Library/Frameworks/SensorKit.framework/SensorKit' (no such file) Application 'com.companyname.dotnetmaui_locationcrash' terminated (with exit code '0' and/or crashing signal '). Launched application 'com.companyname.dotnetmaui_locationcrash' on 'Daniel Christmas’ iPad' with pid 39463

@jfversluis jfversluis removed the s/needs-verification Indicates that this issue needs initial verification before further triage will happen label Jun 9, 2022
@jfversluis
Copy link
Member

Hey @justadaniel sorry it's been a while. Can you please confirm this is still an issue in current versions? Thanks!

@jfversluis jfversluis added s/needs-info Issue needs more info from the author and removed s/needs-attention Issue has more information and needs another look labels Mar 17, 2023
@jfversluis jfversluis added this to the Backlog milestone Mar 17, 2023
@ghost
Copy link

ghost commented Mar 17, 2023

Hi @justadaniel. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@ghost
Copy link

ghost commented Mar 17, 2023

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

@ghost ghost added the s/no-recent-activity Issue has had no recent activity label Mar 21, 2023
@ghost
Copy link

ghost commented Mar 21, 2023

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

@ghost ghost closed this as completed Mar 24, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Apr 23, 2023
@ghost ghost removed the s/no-recent-activity Issue has had no recent activity label Feb 1, 2024
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-essentials Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info platform/iOS 🍎 s/needs-info Issue needs more info from the author t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants