Amazon IOS SDK:编译器警告 - ARC 问题?
我已成功使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试将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.