XcodesOrg / XcodesOrg/XcodesApp

Same Xcode Version cause unexpected behavior

Open
#399 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Swift
Stars
8.6k
Forks
387
Avg merge
6d 7h
Merged PRs (30d)
3

Description

Describe the bug

There are 2 Xcode 3.2.3 with the same version. When select one of them, the 2 will be selected.

The log explains why this strange behavior is triggered.

ForEach<Array<Xcode>, Version, XcodeListViewRow>: the ID 3.2.3+10M2262 occurs multiple times within the collection, this will give undefined results!

We use Xcode.Version as Identifiable's ID, but it was not unique enough to identify different Xcode info. (Normally any change of Xcode should update the build number, but this is not.)

image

To Reproduce

Scroll down to Xcode 3.2.3 and choose one of them.

Expected behavior
A clear and concise description of what you expected to happen.

Only one Xcode is selected and we can switch to check another one.

Screenshots

image

Version

  • OS: macOS 13.4 (22F66)
  • Xcodes: 1.10.0(18)

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 by locating the Xcode model's Identifiable conformance and the list view that displays Xcode versions. Reproduce the duplicate 3.2.3 entries, then verify that selecting one entry selects only that Xcode and allows switching to the other.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.