简体   繁体   English

Swift中s3图像上传的AWS Appsync工作示例?

[英]AWS Appsync working example in Swift of s3 image upload?

I'm following this tutorial here: https://docs.aws.amazon.com/appsync/latest/devguide/building-a-client-app-ios.html 我在这里关注本教程: https : //docs.aws.amazon.com/appsync/latest/devguide/building-a-client-app-ios.html

I'm having some issues getting it to work, wondering if anyone has a working example. 我在使其工作时遇到了一些问题,想知道是否有人有可行的例子。

Current issues: 当前的问题:

  1. Pods don't match up to the tutorial (awss3 and awsappsync require different versions of AWSCore (2.6.6 vs 2.6.12) Pod与本教程不符(awss3和awsappsync需要不同版本的AWSCore(2.6.6与2.6.12)
  2. When using using different pod versions (apsync 2.6.7 and awss3 2.6.6) - the code generated by api-appsync-codegen doesn't compile - it doesn't create an S3Object class - but tries to extend it. 当使用不同的pod版本(apsync 2.6.7和awss3 2.6.6)使用时-api-appsync-codegen生成的代码无法编译-它不会创建S3Object类-但会尝试对其进行扩展。

Thanks for the help. 谢谢您的帮助。

AppSync SDK release of 2.6.14 fixes this issue. AppSync SDK 2.6.14版本修复了此问题。 Now it takes dependency on latest available version of code. 现在,它依赖于最新的可用代码版本。 You should be able to run pod install --repo-update and be able to get the latest installation. 您应该能够运行pod install --repo-update并能够获得最新的安装。

Thanks, Rohan 谢谢,罗汉

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM