Donate Share

HessianKit

Tracker: Bugs

5 exceptions on iphone-simulator 3.1 - ID: 2827498
Last Update: Settings changed ( peylow )

When running hessiankit 1.0.3 in the iphone-simulator 3.1, the app crashes
due to an doesNotRecognizeSelector exception.

I've tracked down the cause to the (Private) interface declarations. Seems
like the iphone sdk is unhappy with the fact that the interface is split to
two files, and behaves like the private methods don't exist at all.

I tried moving both the @interface and @implementation for
CWDistantHessianObject and CWHessianArchiver and CWHessianUnarchiver to the
respective .m files, and then the problem disappeared.

This problems only occurs with the iphone sdk, when building for osx
eveything is fine.

Oh and btw, there seems to be a bug in CWHessianArchiver:classForClassName
- that method is using _protocolTranslation instead of
_classnameTranslation (thats not used anywhere at all).


Tharit ( tharit ) - 2009-07-26 22:32

5

Open

Accepted

Fredrik Olsson

Documentation

v1.0.3

Public


Comment ( 1 )




Date: 2009-08-10 06:38
Sender: peylowProject Admin

The problem is that the linker will remove aggressively unused methods.
Unfortunately a but to aggressive for static libraries, as a result any
method in a category is removed.

The solution is to add the other linker flags "-ObjC", that will tell the
compiler not to remove unreferenced Obj-C methods.

This should be specified clearly in the documentation.


Log in to comment.

Attached File

No Files Currently Attached

Changes ( 4 )

Field Old Value Date By
resolution_id None 2009-08-10 06:38 peylow
category_id None 2009-08-10 06:38 peylow
artifact_group_id None 2009-08-10 06:38 peylow
assigned_to nobody 2009-08-10 06:38 peylow