Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Tech Debt] Change `TARGET_OS_IPHONE` macros in code

Open
#82 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
ios, swift
Domain
mobile

Research direction

Search the repository for every TARGET_OS_IPHONE occurrence and read the referenced pull requests for compatibility context. Determine the appropriate replacement macros and whether the deployment target must move to iOS 9.2; the work is done when all occurrences are updated and the project builds correctly under Xcode 10 and Swift 4.2.

Written by the indexing model from the issue text.

Description

bug

Xcode 10 and Swift 4.2 no longer recognize the TARGET_OS_IPHONE macro, which was deprecated in Swift 3 and removed in 4.2. The side effect of this is that Xcode is now executing code that was not meant for simulators.

The code need reviewed and all TARGET_OS_IPHONE macros replaced. I don't have a specific recommendation because this project may also need updated to target iOS 9.2 instead of 9.0 for full compatibility with the new macros.

Ref. https://github.com/Automattic/Automattic-Tracks-iOS/pull/78
Ref. https://github.com/woocommerce/woocommerce-ios/pull/475

Dominant language
Swift
Stars
47
Forks
15
Avg merge
1d 34m
Merged PRs (30d)
1

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No 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.

More from Automattic/Automattic-Tracks-iOS

All issues in Automattic/Automattic-Tracks-iOS

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.