swift - 我可以将 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 应用程序?预先感谢您的任何帮助!
解决方案
根据他们的 Github 页面,从 0.10.0 版开始,似乎没有支持 watchOS 的计划:
平台支持
Amplify 支持 iOS 11 及更高版本以及某些类别(例如预测)的 iOS 13。目前没有计划在 WatchOS、tvOS 或 MacOS 上支持 Amplify。
推荐阅读
- sql - GetDate() 返回常量字面错误,如何解决?
- javascript - Ionic 3动态单选按钮formBuilder验证如果全部选中则启用按钮
- node.js - 如何在不使用 npm install 的情况下安装漂白模块?
- javascript - Javascript如何使用递归从对象中打印值
- android - Android 应用已成功在 Google Play 上发布,但无法在 Google Play 商店中搜索
- mysql - MYSQL 数据库 - HUE 连接失败 | 无法使用提供的凭据连接到主机 1 上的数据库
- ruby - 如何提高嵌套循环的算法效率
- javascript - .replace() 在嵌入式 javascript 中不起作用
- php - 在 laravel 中使用资产链接到 css 文件
- swift - 将 Java 三部分 for 循环转换为 Swift