Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClassMetadata.descriptor's ptr is sometimes nil #68

Open
NSExceptional opened this issue Apr 27, 2022 · 2 comments
Open

ClassMetadata.descriptor's ptr is sometimes nil #68

NSExceptional opened this issue Apr 27, 2022 · 2 comments

Comments

@NSExceptional
Copy link

Not sure what other information I need to provide, but just ask! I'm trying to inspect Swift classes in third party apps.

@NSExceptional
Copy link
Author

NSExceptional commented Jul 2, 2022

In this instance it seems to be happening when you have a class defined in Swift, and then at runtime it is subclassed, and that subclass is what has the issue.

It's probably not an "issue" but it is something I'm not sure how to handle yet.

For context, this is something Firebase does to your app delegate

@NSExceptional
Copy link
Author

NSExceptional commented Jul 3, 2022

I have updated my own fork with a fix; lmk if it's one you want to merge. I made SignedPointer have an implicitly unwrapped! pointer, and I made ClassMetadata.descriptor optional and forcefully unwrapped it in your tests. Might add a test for "artificial subclasses" if you do want this merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant