Amazon IOS SDK:编译器警告 - ARC 问题?

发布于 2024-12-27 05:54:40 字数 278 浏览 1 评论 0原文

我已成功使用 Amazon 的 iOS SDK 从 S3 上传和下载文件。自从升级到 Xcode 4.2、Amazon SDK 1.0.4 并使用 ARC 构建应用程序(再次成功)后,每次编译时我都会收到 49 条警告消息。

这些包括: S3ListPartsResult.h: - 词汇或预处理器问题 -- #import 指令末尾的额外标记

AmazonServiceResponse.h - 语义问题 -- 没有分配、保留或复制属性

有人知道是什么原因造成的吗?

谢谢。

I have used Amazon's iOS SDK successfully to up- and download files from S3. Since upgrading to Xcode 4.2, Amazon SDK 1.0.4 and building apps using ARC (again successfully) I get 49 warning messages whenever I compile.

These include:
S3ListPartsResult.h:
- Lexical or Preprocessor Issue
-- Extra tokens at end of #import directive

AmazonServiceResponse.h
- Semantic Issue
-- No assign, retain or copy attribute

Any one have any idea what is causing this?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

花开雨落又逢春i 2025-01-03 05:54:40

尝试将SDK编译成静态库。您可以为库选择非弧形模式。然后编译它并将库拖到您的框架文件夹中。这解决了我的问题。

Try compile the SDK into a static library. You can choose the non-arc mode for the library. Then compile it and drag the library to your framework folder. That solved my issue.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文