我如何安装Ti.Healthkit模块?

时间:2016-08-31 03:14:52

标签: appcelerator appcelerator-titanium health-kit titanium-modules

我已经从https://labs.appcelerator.com/project/55c3c788e014044625e9b2a1/HealthKit-Module下载了ti.healthkit,但是我无法通过说明进行构建。

所以我得到了这个bug 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。但我仍然得到同样的错误。

那么,我该如何解决呢?

期待你的回答。

非常感谢你。

1 个答案:

答案 0 :(得分:0)

当我阅读此工具包的文档时,他们说要在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>