fix: replace objc_getClassList with objc_copyClassNamesForImage to av… - #221
Merged
Conversation
CAMOBAP
marked this pull request as ready for review
April 15, 2026 13:35
|
Cocoapods size report: |
faris-imi
previously approved these changes
Apr 15, 2026
CAMOBAP
force-pushed
the
bugfix/fix-objc-runtime-crash-ios16
branch
from
April 15, 2026 14:52
a121295 to
13dbf08
Compare
…oid class realization objc_getClassList forces the ObjC runtime to realize every registered class, which crashes on iOS 16 when the host app contains @observable classes guarded by @available(iOS 17, *). objc_copyClassNamesForImage reads class name strings from Mach-O metadata without realizing any class, avoiding the crash. Fixes #220
CAMOBAP
force-pushed
the
bugfix/fix-objc-runtime-crash-ios16
branch
from
April 19, 2026 19:36
13dbf08 to
2cd0ec9
Compare
|
Any news on this? |
e271828-
approved these changes
May 7, 2026
Contributor
This should be released later today. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…oid class realization
objc_getClassList forces the ObjC runtime to realize every registered class, which crashes on iOS 16 when the host app contains @observable classes guarded by @available(iOS 17, *). objc_copyClassNamesForImage reads class name strings from Mach-O metadata without realizing any class, avoiding the crash.
Fixes #220