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

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

问题描述

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



由于AdSupport.framework应用程序在iOS 5.x上崩溃后立即出现以下错误:

  dyld:Library未加载:/System/Library/Frameworks/AdSupport.framework/AdSupport 

引用自:/ Volumes / Macintosh HD / Users / dmitrybaranov / Library / Application Support / iPhone Simulator / 5.0 / Applications / D6A93996- 1E58-48A5-A457-DBC4FCCEE0EB / app.app / app

原因:图像未找到
(lldb)

有没有人面临这个问题? Facebook的一面有问题吗?有人正在修复这个问题吗?



或者我们做错了什么?

解决方案

您是否将框架设置为可选项?当您添加AdSupport.framework,Social.framework和Accounts.framework时,右下角有可以在必需和可选之间进行选择的下拉菜单。请参阅图片示例:
链接



另一件事是检查项目的Build Settings,Base SDK是6.0,iOS Deployment Target是iOS 4.3。



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


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.

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)

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

Or are we doing something wrong?

解决方案

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

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.

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天全站免登陆