Thanks to arturgrigor - https://developer.apple.com/forums/profile/arturgrigor, I finally solved my issue too! The problem definitely was the package name being the same as the .xcdatamodeld file name (or vice versa…). Changing one of those made my Release build successful…! 🥳
Post
Replies
Boosts
Views
Activity
Alright then! 👀
Thanks for the explanation
Same issue here, with about 5 files…
Any specific targets in your Project? I do have a WidgetExtension target and wondering if it could be the cause since on another project with no WidgetTarget I didn't had any issue with Xcode Cloud…
Thank you for your reply! From what I read in the PickerStyle documentation, there is no public API to create a custom one… 🤔
Anyway, revisiting the mentioned sessions allowed me to derive the ID property from the containerValues rather than the Subview.ID, like so:
if let selection = subview.containerValues.tag(for: SelectionValue.self) {
…
}
All I have to do then is tag my custom view in place like so:
ForEach(SomeEnum.allCases, id: \.self) { enumCase in
Text(enumCase.localizedString)
.tag(enumCase)
}
I’m unsure wether this is the best way to go, but at least it technically solves my initial problem and works quite well.