0

I've read a lot of topics about this issue. But none of them really describes my problem.

So one the solutions to solve the errors that are occuring if you combinate facebookSDK with JSON is to rename the JSON classes that are causing a conflict.

SO that is exactly what I did. I have renamed all the classes that where causing the errors (not only the filenames ;).

So now when I run my app Xcode sais: no complications, BUT I get thread 1 sigabrt.

The whole Xcode message:

Couldn't register blabla.blabla with the bootstrap server. Error: unknown error code. This generally means that another instance of this process was already running or is hung in the debugger.Current language: auto; currently objective-c (gdb)

David Berry
  • 40,941
  • 12
  • 84
  • 95
Foo
  • 596
  • 2
  • 5
  • 21

1 Answers1

2

This xCode message is not related to your json or facebook stuff. Delete your app, restart your phone and it will get rid of it

Greg Price
  • 2,556
  • 1
  • 24
  • 33
  • Thanks 4 the quick respond. Just did that. But now the build is succeeded, but still crashes (without any error now). If I remove the references to the facebookSDK and resources.bundle it works like a charm. But I need those... any suggestions? – Foo Oct 04 '12 at 16:08
  • **I dont use ARC by the way** – Foo Oct 04 '12 at 16:14
  • Duplicate classes (because Facebook uses JSon as well, and I already used Json in my app). **NOTE: I've tried facebookSDK 3.0 and 3.1 as well... still the same** – Foo Oct 04 '12 at 16:36
  • Should be able to go ahead and delete the json library out of the facebook sdk – Greg Price Oct 04 '12 at 16:41
  • I have solved an earlier error by using the **-all_load** linking flag. Does it has something to do with that maybe? – Foo Oct 04 '12 at 16:44
  • Yes but how? it is like a bundle with some LEGO icon. I cant see the contents of it – Foo Oct 04 '12 at 16:45
  • No it shouldnt... The thing is that your application only needs one JSON library. So delete one of them, then to ensure yours is being compiled go into targets/build phases/ compile sources and make sure all of the .m json sources are in there, add them if they are not. since you arent using arc you shouldnt have to change any compiler settings – Greg Price Oct 04 '12 at 16:47
  • 1
    another option is to go here: https://github.com/facebook/facebook-ios-sdk/tree/master/src and manually add all of the facebook files to your project into a folder, and make sure they are added to your compile sources – Greg Price Oct 04 '12 at 16:51
  • OKay thank you very much. I will restore to a previous snapshot and try your latest suggestion. I will get back ya. ..after friends/dinner ;). – Foo Oct 04 '12 at 17:10
  • unfortunately it didnt worked out, because: I've downloaded the package as a zip file, but it turns out to be the 3.1 sdk. BUT I dont have the newest Xcode (because I dont use lion) and so I dont have the newest frameworks (like social). Very annoying.. I need a zip of the facebook 3.0 src – Foo Oct 04 '12 at 21:45