适用于 iOS 的 Facebook SDK 3.1 - 在 iOS6 上运行,但在 iOS 5.x 上崩溃 [英] Facebook SDK 3.1 for iOS - runs on iOS6, but crashes on iOS 5.x

查看:22
本文介绍了适用于 iOS 的 Facebook SDK 3.1 - 在 iOS6 上运行,但在 iOS 5.x 上崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们刚刚将 iOS 版 Facebook SDK 更新至 3.1.Facebook SDK 3.0.8 没有在 iOS6 上运行,现在我们升级到 3.1,它在 iOS 6 上运行,但在 iOS 5.x 下崩溃.

We've just updated our Facebook SDK for iOS to 3.1. Facebook SDK 3.0.8 didn't run on iOS6, now that we have upgraded to 3.1, it runs on iOS 6, but crashes under iOS 5.x.

因为 AdSupport.framework 应用程序在 iOS 5.x 上立即崩溃并出现以下错误:

because of AdSupport.framework app crashes on iOS 5.x instantly after starting with the following error:

dyld: Library not loaded: /System/Library/Frameworks/AdSupport.framework/AdSupport

Referenced from: /Volumes/Macintosh HD/Users/dmitrybaranov/Library/Application Support/iPhone Simulator/5.0/Applications/D6A93996-1E58-48A5-A457-DBC4FCCEE0EB/app.app/app
        
Reason: image not found
(lldb)

有人遇到过这个问题吗?Facebook 方面有问题吗?有人正在努力解决这个问题吗?

Did anybody face that problem? Is there a problem on Facebook's side and there guys are working on fixing this?

还是我们做错了什么?

推荐答案

您是否将框架设置为可选?当您添加 AdSupport.framework、Social.framework 和 Accounts.framework 时,右侧有一个下拉菜单,您可以在必需"和可选"之间进行选择.在此处查看图片示例:链接

Did you set the frameworks to be optional? When you are adding AdSupport.framework, Social.framework, and Accounts.framework, there is drop down menu to the right that you can select between "Required" and "Optional". See a picture example here: Link

要检查的另一件事是在您项目的构建设置"中,基础 SDK"是 6.0,iOS 部署目标"是 iOS 4.3.

Another thing to check is in your Project's "Build Settings" that 'Base SDK' is 6.0 and 'iOS Deployment Target' is iOS 4.3.

我可以使用这些设置在我的 iOS 5.1 上构建 FB SDK 3.1.

I'm able to build FB SDK 3.1 on my iOS 5.1 with these settings.

这篇关于适用于 iOS 的 Facebook SDK 3.1 - 在 iOS6 上运行,但在 iOS 5.x 上崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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