首页 > 解决方案 > 我可以将 AWS Amplify 与独立的 WatchOS 应用程序一起使用吗?

问题描述

我正在构建一个独立的 WatchOS 应用程序并尝试使用 AWS Amplify 作为后端。但是,每当我尝试在我的 Podfiles 中安装它时,我都会从终端收到此错误:

[!] The platform of the target `xyz WatchKit App` (watchOS 6.1) is not compatible with `AmplifyPlugins/AWSAPIPlugin (0.10.0)`, which does not support `watchOS`.

我以为这是因为我把它放在 Podfile 的错误部分下(因为独立手表有三个部分(应用名称、WatchKit 和 WatchKit 扩展)。但是,当我放置 podfile 信息时,我得到了这个响应应用名称正下方:

 [!] CocoaPods could not find compatible versions for pod "amplify-tools":
 In Podfile:
amplify-tools

Specs satisfying the `amplify-tools` dependency were found, but they required a higher minimum deployment target.

我之前遇到过这个问题,但是当我更改全球平台时它不起作用。有什么我想念的吗?还是 AWS 目前不兼容独立的 iOS Watch 应用程序?预先感谢您的任何帮助!

标签: swiftxcodeamazon-web-serviceswatchkit

解决方案


根据他们的 Github 页面,从 0.10.0 版开始,似乎没有支持 watchOS 的计划:

平台支持

Amplify 支持 iOS 11 及更高版本以及某些类别(例如预测)的 iOS 13。目前没有计划在 WatchOS、tvOS 或 MacOS 上支持 Amplify。


推荐阅读