I created an Android/iOS app on my laptop running VS 2019. The Android version works well and is now published on the Google Play Store (look for Fartz by Grime). During development, apart from various simulators/emulators, my physical testing platforms were an oldish Nexus 6 (for Android testing) and my newish iPhone 11. The app works fine on both of them, but I was unable to create a Launch Screen on iOS on my laptop because of the storyboard non-compliance issue, so it was recommended that I on-develop the iOS version on the Mac.
Via GitHub, I have transferred the code to the Mac (also running VS 2019) and on running, am getting an issue with the Xamarin.Essentials accelerometer usage. I'll put the error here, but I've got to say, it worked when deployed via my PC laptop.
Any help would be greatly appreciated.
Error:
Xamarin.Essentials.FeatureNotSupportedException: Specified method is not supported.
at Xamarin.Essentials.Accelerometer.Start (Xamarin.Essentials.SensorSpeed sensorSpeed) [0x00007] in D:\a\1\s\Xamarin.Essentials\Accelerometer\Accelerometer.shared.cs:25
at Fartz.MainPage.OnAppearing () [0x00026] in /Users/graeme/Projects/FartzV2/Fartz/Fartz/View/MainPage.xaml.cs:35
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1021
at Foundation.NSAsyncSynchronizationContextDispatcher.Apply () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.6.0.15/src/Xamarin.iOS/Foundation/NSAction.cs:178
at at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.6.0.15/src/Xamarin.iOS/UIKit/UIApplication.cs:86
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.6.0.15/src/Xamarin.iOS/UIKit/UIApplication.cs:65
at Fartz.iOS.Application.Main (System.String[] args) [0x00001] in /Users/graeme/Projects/FartzV2/Fartz/Fartz.iOS/Main.cs:17