本文介绍了iOS6 / Xcode 4.5的SDK SDK不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近升级的Xcode和我的iOS设备到最新版本我现在无法使用Facebook SDK(版本3.0.8)为设备构建应用程序 - 在模拟器上构建工作正常。



错误我接收同时尝试构建:

 文件是通用的(3片),但不包含(n)armv7s片:我已经注意到,在iOS SDK登陆页面上,我已经注意到, ( http://developers.facebook.com/ios/)他们有这样的文字。



升级到3.0 SDK。我们将在接下来的几周内增加对iOS 6的集成支持。



那么它是吗?我真的无法继续工作,直到他们支持iOS6?



我希望有一个快速的解决方案,



感谢您提供的任何帮助。

解决方案

对于一个临时解决方案,您可以做Sudhakar说的,但该应用程序不会运行在iPhone 5(或至少与我的测试没有)。你真的需要一个正确编译的SDK。



目前的Facebook SDK是为armv6构建的。我听说他们正在努力获得一个新版本,为armv7构建的asap。



同时,您可以从github克隆facebook SDK,并自行编译SDK与armv7一起工作。以下是说明:


  1. 从git中心页面下载或克隆源代码副本(https://github.com/ Facebook / facebook-ios-sdk)

  2. 打开xcode项目,在构建设置中将架构更改为armv7。

  3. 保存并关闭

  4. 导航到/脚本,终端运行build_all.sh

然后编译源代码和输出构建/ FacebookSDK.framework
为了让这个工作,我不得不将git存储库克隆到/ Desktop / iOS
我更换了FacebookSDK.framework是在我的应用程序与新创建的版本,它的工作就像一个魅力。



祝你好运!


Recently upgraded Xcode and my iOS devices to the latest respective versions and i'm now unable to build an app using the Facebook SDK (version 3.0.8) for a device - building on the Simulator works fine.

Error I'm receiving whilst trying to build:

file is universal (3 slices) but does not contain a(n) armv7s slice: ....FacebookSDK.framework/FacebookSDK for architecture armv7s

I've noticed that on the iOS SDK landing page (http://developers.facebook.com/ios/) they have this peice of text..

Upgrade to 3.0 SDK. We will be adding support for the much anticipated iOS 6 integration to the SDK in the coming weeks.

So.. is that it? Am i literally unable to continue to work for potentially weeks until they support iOS6?

I'm hoping there is a quick fix for this, surely I can't be the only one in this situation.

Thanks for any help you can offer.

解决方案

For a temporary fix you can do what Sudhakar said, but the app won't run on an iPhone 5, (or atleast with my tests it didn't). You really need a properly compiled SDK.

The current Facebook SDK is build for armv6. I hear they are working on getting a new version out asap that is build for armv7.

In the meantime you can clone down the facebook SDK from github and compile the SDK to work with armv7 yourself. Below are the instructions:

  1. Download or clone a copy of the source code from the git hub page (https://github.com/facebook/facebook-ios-sdk)
  2. Open up the xcode project and in the build settings change the architecture to armv7.
  3. Save and close
  4. Navigate to /scripts and in terminal run build_all.sh

This will then compile the source and output builds/FacebookSDK.frameworkTo get this to work I had to clone the git repository to /Desktop/iOSI replaced the FacebookSDK.framework that was within my app with the newly created version and it worked like a charm.

good luck!

这篇关于iOS6 / Xcode 4.5的SDK SDK不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 16:06