XcodesApp
XcodesApp copied to clipboard
Same Xcode Version cause unexpected behavior
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.)
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
Version
- OS: macOS 13.4 (22F66)
- Xcodes: 1.10.0(18)