-
Notifications
You must be signed in to change notification settings - Fork 520
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
[Bug] Xamarin.Forms iOS 14 - 'SensorKit' not found error during debug build/launch #9938
Comments
Some more info - it appears a workaround is available by changing the Linking Behavior in the iOS project's build options from |
Sounds like the device in question doesn't have the SensorKit framework, even though iOS 14 is supposed to (maybe because it's an iPad?) My guess is that adding We'll probably have to treat this like CoreNFC, and always weak link. |
Thanks, @rolfbjarne - I tried adding Also of note, I just applied the latest iOS update from Apple (14.1) on my iPad but unfortunately no luck. I updated the version in the issue description to reflect that change. We'll continue to use the |
I see the same issue in my Xamarin.iOS app - will there be any efforts to fix this? |
@rolfbjarne suggestion works, the proper syntax is --weak-framework=SensorKit.framework/SensorKit |
For me the workaround doesn't work. Because of another bug I need to set the behaviour to Why does Xamarin try to access these frameworks? The SensorKit is only for iPhones and paired Apple Watches. |
Still no answer from devs teams?.. |
If adding
|
Thank you for this, --weak-framework SensorKit was not working for me either. |
I am still having trouble even with the addition to the mtouch arguments. Here is my build log: Launching 'HBSApp.iOS' on 'Zach’s iPad'... |
That's not the build log, it's the run log. |
My bad. I believe that this is the build log. Build started... |
@zbulleit As a little tip, if you have log files that long again, you can use collapsible sections. So it's easier for the readers.😉 |
@zbulleit please follow the instructions here to get a diagnostic build log: #9938 (comment), that log doesn't contain enough information to figure out what's going on. |
@21r8390 Thank you for the tip. I think that this is what you wanted. Let me know if it's not and I will keep looking. |
I think that's not true. The iPad Pro's also have a Face-Id sensor? |
The SensorKit framework isn't available on all devices (for instance iPads), and as such we can't link with it strongly. This seems to be a bug in Apple's toolchain, because Xcode runs into the same problem if you try to use an app referencing SensorKit on an iPad. Fixes dotnet#9938.
I can reproduce the same issue with Xcode, by just using SensorKit and running on an iPad: @import SensorKit;
...
NSLog (@"%p", [SRSensorReader class]);
|
@rolfbjarne does the fix apply even if you currently cannot link assemblies? |
The SensorKit framework isn't available on all devices (for instance iPads), and as such we can't link with it strongly. This seems to be a bug in Apple's toolchain, because Xcode runs into the same problem if you try to use an app referencing SensorKit on an iPad. Fixes #9938.
Description
Greetings,
After bumping up the Minimum System Version (
MinimumOSVersion
) from13.6
to14.0
and updating an iPad to iOS 14 we're unable to build/launch our application in debug mode from Visual Studio for Mac. The code compiles, builds, deploys, and launches without issue but quickly crashes as soon as it begins launching on the device. The app splash screen flashes up for a fraction of a second, and then it dies instantly. There are no exceptions thrown or any other visible output in the IDE I can see to indicate an error. The IDE remains in debug mode withWaiting for the debugger to connect to Mark's iPad on port ...
The device log does report the issue which seems to point to a missing SensorKit framework:
'/System/Library/Frameworks/SensorKit.framework/SensorKit' not found
Steps to Reproduce
MinimumOSVersion
in info.plist from13.6
to14.0
within our existing project.Expected Behavior
IDE builds and launches the application on the device as expected.
Actual Behavior
The application dies quickly when launched in debug.
Basic Information
Version with issue: Xamarin.Forms 4.8.0.1560
Last known good version: Xamarin.Forms 4.8.0.1560
IDE: Visual Studio for Mac 8.7.8 (build 4)
Platform Target Frameworks:
Affected Devices:
iPad (6th gen) - 14.1
Workaround
Rolling back
MinimumOSVersion
in info.plist from14.0
to13.6
.The text was updated successfully, but these errors were encountered: