Hello,
our app was rejected by the Apple App Store with the notice:
“We noticed that your app uses HealthKit, but your app does not appear to include any primary features that require health or fitness data.
The intended use of HealthKit is generally to share health or fitness data with other apps or devices as a part of the app's core functionality.
To resolve this issue, please remove any HealthKit functionality from your app, as well as any references to this app’s interactivity with HealthKit from the app or its metadata. This includes removing any HealthKit-related keys in your app's Info.plist as well as removing any calls to HealthKit APIs, including those from 3rd party platforms, from your app.”
However, our app has no HealthKit functionality.
Some research has shown that the problem lies in Xamarin.Forms, and the solution can be built with "Link Framework SDKs Only".
I use Microsoft Visual Studio Professional 2019 version 16.9.4 (VisualStudio.16.Release/16.9.4+31205.134)
with Xamarin.Forms 5.0.0.2012 and MvvmCross 7.1.2.
Microsoft .NET Framework Version 4.8.04084
Xamarin 16.9.000.273
Xamarin Templates 16.9.72
Xamarin.iOS and Xamarin.Mac SDK 14.14.2.5
With "Link Framework SDKs Only" the following error occurs in the Xamarin.iOS project:
“Can't resolve the reference 'System.Runtime.InteropServices.CustomMarshalers.EnumeratorToEnumVariantMarshaler', referenced from the method 'System.Collections.IEnumerator Dia2Lib.IDiaEnumTables::GetEnumerator()' in 'CustomMarshalers, Version=4.0.0.0, Culture=neutral, PublicKeyToken=xxx'.”
Is a Windows update necessary here because of the system libraries and CustomMarshalers?
Greetings,
OBE