iOS SDK SDK V 3.0上的重复符号SBJSON [英] Duplicate Symbol SBJSON on iOS Facebook SDK V 3.0

查看:115
本文介绍了iOS SDK SDK V 3.0上的重复符号SBJSON的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在目前的项目中,我使用了SBJSON,并将其与以前版本的iOS SDK SDK配合使用,因为SBJSON已被包含在Facebook SDK中。

In the current project, I used SBJSON everywhere and got it working fine with the previous version of iOS Facebook SDK since SBJSON was included in Facebook SDK.

升级到iOS Facebook SDK 3.0版,并且与SBJSON有问题。

I just upgraded to iOS Facebook SDK version 3.0 and having problem with SBJSON.

它首先提到的是没有找到SBJSON头文件。所以我想,我可以手动将SBJSON库包含在项目中。

The first thing it complaint was about NOT finding SBJSON header file. So I thought, I could manually include the SBJSON lib into the project.

之后,编译器抱怨SBJSON符号与Facebook SDK重复。

After I did that, then the compiler complaint that the SBJSON symbol was duplicated with the Facebook SDK.

我在FB SDK头文件中找不到SBJSON.h。

I could not find the SBJSON.h anywhere in FB SDK headers.

所以最后,我进入一个循环的问题。

So at the end, I went into a loop of problems.

有谁知道如何解决这个问题?
最糟糕的情况是,我必须切换到使用iOS的其他JSON库。

Does anyone know how to solve this issue? The worst case could be that I have to switch to use other JSON library for iOS.

注意:他们正在使用框架对于Facebook SDK,不像之前的源代码库

Note: They are using framework for Facebook SDK, not the source code library like before

Cheers

推荐答案

p>我最终用来解决这个问题有两种方法:

What I ended up using to solve this are two approaches:

第一个


  • 首先,不要使用预先构建的Facebook SDK框架,他们
    提供

  • 其次,查看Facebook SDK源代码 Facebook SDK 并将其整合到项目

  • Firstly, not using the pre-built Facebook SDK framework that they provided
  • Secondly, check out the Facebook SDK source code from Facebook SDK and integrate it to the project

第二个

使用他们的源代码集成Json框架这里,并将任何重复类的名称更改为您的项目独特的东西,如SBJsonParser到MySBJ sonParser

Integrate the Json-framework using their source code here and change the name of any duplicate class to something unique to your project like SBJsonParser to MySBJsonParser

这篇关于iOS SDK SDK V 3.0上的重复符号SBJSON的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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