【问题标题】:How can i install Ti.Healthkit module?如何安装 Ti.Healthkit 模块?
【发布时间】:2016-08-31 03:14:52
【问题描述】:

我已经从https://labs.appcelerator.com/project/55c3c788e014044625e9b2a1/HealthKit-Module 下载了 ti.healthkit,但我无法构建它,尽管我按照说明做了。

所以我得到了错误 Chances are there is an issue with your entitlements. Verify the bundle IDs in the generated Info.plist file.

我还添加 <key>UIRequiredDeviceCapabilities</key> <array> <string>healthkit</string> </array>

进入 tiapp.xml。但我仍然遇到同样的错误。

那么,我该如何解决呢?

期待您的回答。

非常感谢。

【问题讨论】:

    标签: appcelerator appcelerator-titanium healthkit titanium-modules


    【解决方案1】:

    当我阅读这个工具包的文档时,他们说要在你的 tiapp.xml 文件 plist 标签中添加这个:

    <key>com.apple.developer.healthkit</key>
    <true/>
    

    因此,您的最终 tiapp.xml 文件应如下所示(注意最后的 healthkit 键值):

    <ios>
            <enable-launch-screen-storyboard>true</enable-launch-screen-storyboard>
            <plist>
                <dict>
                    <key>UISupportedInterfaceOrientations~iphone</key>
                    <array>
                        <string>UIInterfaceOrientationPortrait</string>
                    </array>
                    <key>UISupportedInterfaceOrientations~ipad</key>
                    <array>
                        <string>UIInterfaceOrientationPortrait</string>
                        <string>UIInterfaceOrientationPortraitUpsideDown</string>
                        <string>UIInterfaceOrientationLandscapeLeft</string>
                        <string>UIInterfaceOrientationLandscapeRight</string>
                    </array>
                    <key>UIRequiresPersistentWiFi</key>
                    <false/>
                    <key>UIPrerenderedIcon</key>
                    <false/>
                    <key>UIStatusBarHidden</key>
                    <false/>
                    <key>UIStatusBarStyle</key>
                    <string>UIStatusBarStyleDefault</string>
                    <key>com.apple.developer.healthkit</key>
                    <true/>
                </dict>
            </plist>
        </ios>
    

    【讨论】:

    • 您好,感谢您回答我。我已经解决了这个问题。我刚刚注册了 Apple 证书,为它添加了 Healthkit。我已经成功构建了。
    猜你喜欢
    • 2019-05-04
    • 2017-02-13
    • 2023-03-09
    • 2013-12-30
    • 2011-03-24
    • 2018-11-17
    • 2019-09-06
    • 2013-09-24
    • 1970-01-01
    相关资源
    最近更新 更多