wordpress-mobile / wordpress-mobile/WordPress-iOS

ReachabilityUtils: `[UIApplication sharedApplication]` not called from main thread

Open
#23,204 1 comment 0 reactions 0 assignees View on GitHub

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.

image
Steps to reproduce the behavior
  1. Build and run a debug build with the Xcode debugger attached
  2. Start a new post with the editor
  3. Observe the warning

Xcode version: 15.4

LOC

Tested on iPhone 15 Simulator, iOS 17.4, Jetpack iOS / WordPress iOS 24.9

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.