XcodesOrg / XcodesApp

The easiest way to install and switch between multiple versions of Xcode - with a mouse click.
MIT License
6.75k stars 294 forks source link

Same Xcode Version cause unexpected behavior #399

Open Kyle-Ye opened 1 year ago

Kyle-Ye commented 1 year ago

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