Skip to content

Conversation

madsmtm
Copy link
Contributor

@madsmtm madsmtm commented Mar 10, 2025

Accidentally removed this check in #95 (it's confusing, because sharedApplication is declared as non-NULL in the header, but that's because UIKit assumes you call UIApplicationMain as the first thing in fn main, it is actually null before UIApplicationMain has been called).

This is not a soundness issue, objc2 would have panicked internally when trying to create Retained<NSObject> from sharedApplication. But the error message is clearer this way, and we avoid a panic.

@amodm amodm merged commit 0f4d885 into amodm:main Mar 10, 2025
10 checks passed
@amodm
Copy link
Owner

amodm commented Mar 10, 2025

Thanks for pointing this out, and for the fix.

@madsmtm madsmtm deleted the ios-check-app branch March 10, 2025 12:51
@amodm
Copy link
Owner

amodm commented Mar 10, 2025

This is now out as v1.0.4

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

Successfully merging this pull request may close these issues.

2 participants