wordpress-mobile / wordpress-mobile/WordPress-iOS
ReachabilityUtils: `[UIApplication sharedApplication]` not called from main thread
Open
Nobody has claimed this yet.
[Pri] Low
[Type] Bug
Network/Sync
- Dominant language
- Swift
- Stars
- 3.9k
- Forks
- 1.2k
- Avg merge
- 23h 51m
- Merged PRs (30d)
- 58
Description
Expected behavior
Not to see a warning that [UIApplication sharedApplication] must be used from the main thread only.
Actual behavior
A warning is shown that [UIApplication sharedApplication] must be used from the main thread only.
Steps to reproduce the behavior
- Build and run a debug build with the Xcode debugger attached
- Start a new post with the editor
- Observe the warning
Xcode version: 15.4
Tested on iPhone 15 Simulator, iOS 17.4, Jetpack iOS / WordPress iOS 24.9
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at WordPress/Classes/Utility/ReachabilityUtils.m around line 64 and reproduce the warning with a debug build using the Xcode debugger. Trace the UIApplication access during the new-post editor flow, then verify the warning no longer appears when repeating the reported steps.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, objective-c
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100