苹果一直拒绝我们的应用程序,因为他们声称它使用HealthKit?

时间:2019-03-27 07:51:18

标签: ios xamarin.ios app-store health-kit

我只想知道如何确定问题所在,尽管我们的所有尝试最终都拒绝了Apple的应用程序(现在超过一个月),但我们并未对该健康套件添加任何参考。

他们的消息:

  

我们注意到您的应用使用了HealthKit,但是您的应用没有出现   包括需要健康或健身数据的所有主要功能。

     

HealthKit的预期用途是与以下人员共享健康或健身数据   其他应用或设备,并且仅应在需要   这些数据是应用程序核心功能的一部分。

     

后续步骤

     

要解决此问题,请从以下位置删除任何HealthKit功能:   您的应用,以及与此应用的互动性的任何引用   该应用或其元数据中的HealthKit。

这是我们iOS项目中所有参考的屏幕截图:

enter image description here

inf.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>UIDeviceFamily</key>
    <array>
        <integer>1</integer>
        <integer>2</integer>
    </array>
    <key>CFBundleDevelopmentRegion</key>
    <string>ar</string>
    <key>CFBundleLocalizations</key>
    <array>
        <string>en</string>
        <string>ar</string>
    </array>
    <key>UIAppFonts</key>
    <array>
        <string>icon-font.ttf</string>
        <string>DroidKufiRegular.ttf</string>
        <string>DroidKufiBold.ttf</string>
    </array>
    <key>UISupportedInterfaceOrientations</key>
    <array>
        <string>UIInterfaceOrientationPortrait</string>
        <string>UIInterfaceOrientationPortraitUpsideDown</string>
        <string>UIInterfaceOrientationLandscapeLeft</string>
    </array>
    <key>UISupportedInterfaceOrientations~ipad</key>
    <array>
        <string>UIInterfaceOrientationPortrait</string>
    </array>
    <key>MinimumOSVersion</key>
    <string>9.3</string>
    <key>CFBundleDisplayName</key>
    <string>my app</string>
    <key>CFBundleVersion</key>
    <string>24</string>
    <key>CFBundleShortVersionString</key>
    <string>2.2.1</string>
    <key>UILaunchStoryboardName</key>
    <string>LaunchScreen</string>
    <key>CFBundleName</key>
    <string>myApp</string>
    <key>NSCameraUsageDescription</key>
    <string>This app needs access to camera to capture product images when adding a new auction</string>
    <key>NSPhotoLibraryUsageDescription</key>
    <string>This app needs access to photo library to browse images when adding a new auction</string>
    <key>NSPhotoLibraryAddUsageDescription</key>
    <string>This app needs access to photo gallary to browse images when adding a new auction</string>
    <key>XSAppIconAssets</key>
    <string>Media.xcassets/AppIcons.appiconset</string>
    <key>CFBundleIdentifier</key>
    <string>com.company.myApp</string>
    <key>NSContactsUsageDescription</key>
    <string>This app requires contacts access to share the application between contacts</string>
    <key>NSCalendarsUsageDescription</key>
    <string>This app requires calnder access to show users thier orders schedule</string>
    <key>NSMicrophoneUsageDescription</key>
    <string>This app requires Microphone access to function properly</string>
    <key>NSAppleMusicUsageDescription</key>
    <string>This app requires Apple Music access to function properly</string>
    <key>NSSiriUsageDescription</key>
    <string>This app requires Siri access to function properly</string>
    <key>NSBluetoothPeripheralUsageDescription</key>
    <string>This app requires bluetooth access to function properly</string>
    <key>UIRequiresFullScreen</key>
    <true/>
    <key>NSAppTransportSecurity</key>
    <dict>
        <key>NSAllowsArbitraryLoads</key>
        <true/>
        <key>NSExceptionDomains</key>
        <dict>
            <key>http://myapp.com</key>
            <dict>
                <key>NSExceptionAllowsInsecureHTTPLoads</key>
                <true/>
                <key>NSIncludesSubdomains</key>
                <true/>
                <key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
                <false/>
            </dict>
        </dict>
    </dict>
</dict>
</plist>

Entitlements.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>aps-environment</key>
    <string>production</string>
</dict>
</plist>

1 个答案:

答案 0 :(得分:0)

我们可以通过将“链接行为”更改为“ 仅链接框架SDK” 来解决此问题,我们之前已经尝试过,但是此错误正在出现:

  

无法解析参考'System.Void   Xamarin.Forms.Log :: Warning(System.String,System.String)',已引用   从方法'System.Void   Xamarin.Forms.Pages.BaseDataSource / d__22 :: MoveNext()'   'Xamarin.Forms.Core,版本= 2.0.0.0,文化=中性,   PublicKeyToken = null'。

我们将Xamarin.Forms.Pages软件包安装到iOS项目中,该项目成功构建,并且该应用最终被Apple接受。