Skip to content

toJsonString throwing NSInvalidArgumentException #9

@irfan-cloudnix

Description

@irfan-cloudnix

When it reaches below code

XRActivityInstrumentRun *run = [NSUnarchiver unarchiveObjectWithData:traceData];
jsonString = [run toJsonString];

it threw

2018-03-14 20:08:32.699 iParse[48933:654696] -[XRRun toJsonString]: unrecognized selector sent to instance 0x7f8003414e60
2018-03-14 20:08:32.699 iParse[48933:654696] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[XRRun toJsonString]: unrecognized selector sent to instance 0x7f8003414e60'
*** First throw call stack:
(
0 CoreFoundation 0x00007fffd5c542cb __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00007fffeaa6a48d objc_exception_throw + 48
2 CoreFoundation 0x00007fffd5cd5f04 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x00007fffd5bc6755 forwarding + 1061
4 CoreFoundation 0x00007fffd5bc62a8 _CF_forwarding_prep_0 + 120
5 iParse 0x000000010d13a2a3 main + 4003
6 libdyld.dylib 0x00007fffeb350235 start + 1
7 ??? 0x0000000000000005 0x0 + 5
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6

# Xcode : 9.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions