johnno1962 / SwiftTrace

Trace Swift and Objective-C method invocations
Other
707 stars 52 forks source link

Crash in SwiftArgs.handleArg #38

Closed iCodeWoods closed 2 years ago

iCodeWoods commented 2 years ago

All I did was add SwiftTrace.traceBundle(containing: type(of: self)) to the first line of didFinishLaunchingWithOptions

image
johnno1962 commented 2 years ago

Hi, difficult to say exactly what the problem would be without TeamViewing but this is generally to do with a "resilient" type which is passed by reference. What is the signature of the ruction being traced? You can find this by working your way up the stack to the function swiftDecorate and printing what is passed in. It is trying to describe the return type.

arietis commented 8 months ago

It might be related to Firebase swizzling, I have the same crash now. Update: I have just tested it with the FirebaseApp.configure() commented out and it works fine.

johnno1962 commented 7 months ago

If anybody is interested I have some time to look at this now (TeamView/Zoom) and have been working on SwiftTrace of late. There is a bit of a mystery with the image uploaded in that the code it trapped on is not the original SwiftTrace code (Type.self == AnyObject?.self makes no sense). Also working with Firebase might be a big ask but I can look at it.