1

I want to include SBJson and Sharekint libraries in my Xcode Project the problem is sharekit already contains SBJson but with different methods .. the result is that i ended up with duplicate files containing different code and hence i receive "duplicate symbole" error at compile time .

what would be a solution that wouldn't involve renaming file names and classes because the code will endup to be a complete mess.

thnks in advance .

ahmad
  • 1,212
  • 1
  • 14
  • 28

2 Answers2

2

SBJson is used in FBConnect. Few solutions come to my mind:

  1. If you do not use Facebook, you can remove whole sharer from your project (with older sbjson).
  2. Audit SBJson methods used in your project, and if possible refactor them to use FBConnect's version. Then you can get rid of your project's SBJson files.
  3. even better, if you support only iOS 5+ you might get rid of SBJson in your project completely, and use native iOS 5 NSJSONSerialization class. This is more future-safe solution than 2.
Vilém Kurz
  • 3,401
  • 2
  • 34
  • 43
  • thanks for the clear explanation ! I ended up doing choice 2 but it was more convenient for my project to refactor the sharkit Json to use my project SBJson – ahmad May 16 '12 at 06:07
  • I am glad I could help. If you feel the answer was helpful, you might consider to accept it. – Vilém Kurz May 16 '12 at 09:37
0

Make one folder common with all methods of SBJson and delete the other one .. this will work

Neelam Verma
  • 3,232
  • 1
  • 22
  • 33