duplicate symbol _OBJC_CLASS_$_SBJSON

1 Comment

I used Selenium NativeDriver for Testing an App. My Application was using JSON Library.  And I was getting the below  error on building:

duplicate symbol _OBJC_CLASS_$_SBJSON.

I learned that The NativeDriver library was using JSON for data transfer. So It also was using the same  JSON library.

I was able to fix the problem by excluding the JSON Source files through Xcode settings.

The fix is as below:

Add a user-defined build setting with the name “EXCLUDED_SOURCE_FILE_NAMES”  in Build Settings for the Project’s Target ,  and for the value add :

JSON.h SBJSON.h SBJSON.m SBJsonBase.h SBJsonBase.m SBJsonParser.h SBJsonParser.m SBJsonWriter.h SBJsonWriter.m NSObject+SBJSON.h NSObject+SBJSON.m NSString+SBJSON.h NSString+SBJSON.m

Below images might help you in adding  User defined setting to Project.


putpkt: write failed, broken pipe

Leave a comment

When you get this error while testing an App in iOS device, with out further ado you can do the following to get out of it:

1. Reboot your device

2. Clean your build and rebuild the project and launch the App.

If you get the same problem again add the following options to your procedure:

1. Delete the App from the device

2. Restart XCode.

At times you can get rid of this problem only by Factory Rest of your device.

Xcode 4 buggy

Leave a comment

How can you make a developer easily frustrated?

When you are asked not to do things, you have to do with a IDE.

Here are things you should not do with Xcode IDE version 4.0.

1. Dont use Command + Z to undo the changes you have made.

2. Dont use Command + C to copy and Command + V to paste.

3. Dont save the changes you are making to a file.

4. Dont use Command + X to cut some of your code.

If you dare to do , you would be notified with a message “”Internal error” asking for you to either crash or continue.

No one wants our IDE to crash, so choose to continue and you try the same operation and Xcode throws you the same message again. If you keep doing many times, Xcode would hang and Crash.

There are other annoying things with this version of Xcode.

1. You can not use debugger once you have started your application in run mode. You can debug only if you start right away debugging.

2. Most of the shortcuts you have used with earlier Xocde and Interface builder will not work.

Hope to add many more things to the above list, in my tryst with Xcode 4.