试图破解的AWS IOS SDK,以便它适用于OSX。我得到这个错误 [英] Trying to hack the AWS IOS SDK so that it works for OSX. I get this error

查看:228
本文介绍了试图破解的AWS IOS SDK,以便它适用于OSX。我得到这个错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经删除了UIKit框架的进口,现在我得到这个错误。我必须以某种方式重新编译框架?这不是真的给我任何东西去...

而如果它意味着什么,我能够运行IOS SDK中的例子所以有没有说我不符合任何系统要求。

  LD:警告:忽略文件/Developer/SDKs/MacOSX10.7.sdk/Library/Frameworks//AWSiOSSDK.framework/AWSiOSSDK,缺少文件所需的体系结构的x86_64
适用于建筑x86_64的未定义符号:
  _OBJC_CLASS _ $ _ AmazonS3Client,从引用:
      objc级-REF在Constants.o
LD:符号(S)未找到x86_64的架构
铿锵:错误:连接命令,退出code 1(使用-v看看调用)失败


解决方案

您不能只是使用 .framework Amazon提供,因为二进制仅适用于iOS 。您需要重新构建从源头上,这令人欣慰来自于SDK的框架。

I've removed the import of the UIKit framework, and now I get this error. Do I have to somehow recompile the framework? It's not really giving me anything to go on...

And if it means anything, I am able to run the SDK examples in IOS so there aren't any system requirements that I'm not meeting.

ld: warning: ignoring file /Developer/SDKs/MacOSX10.7.sdk/Library/Frameworks//AWSiOSSDK.framework/AWSiOSSDK, missing required architecture x86_64 in file
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_AmazonS3Client", referenced from:
      objc-class-ref in Constants.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

解决方案

You can't just use the .framework provided by Amazon, because the binary is only for iOS. You need to rebuild the framework from the source, which thankfully comes in the SDK.

这篇关于试图破解的AWS IOS SDK,以便它适用于OSX。我得到这个错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆