@devdevdev I think this should work
var body: some Widget {
widgets()
}
func widgets() -> some Widget {
if #available(iOSApplicationExtension 18.0, *) {
return iOS18Widgets
} else {
return iOS17Widgets
}
}
@WidgetBundleBuilder
var iOS17Widgets: some Widget {
LiveActivityWidget()
HomeScreenWidget()
LockScreenWidget()
}
@available(iOSApplicationExtension 18.0, *)
@WidgetBundleBuilder
var iOS18Widgets: some Widget {
LauncherControl()
LiveActivityWidget()
HomeScreenWidget()
LockScreenWidget()
}
It combines the idea of this thread with the workaround mentioned in https://www.avanderlee.com/swiftui/variable-widgetbundle-configuration/
Post
Replies
Boosts
Views
Activity
With Xcode 15 now released, I was still not able to get my setup to work. Still running into the "Command AppIntentsSSUTraining failed with a nonzero exit code" error
I can also confirm it works now correctly :)
I can confirm that the original issue is resolved in the RC of Xcode 15 now. I can built and sign my application correctly now, building for iOS and watchOS.
For me Xcode 15 Beta 6 is fixing the issue. It's working in the mentioned setup and I do not face the duplicated signature issue any longer.
@oswaldo I do not see any duplicated process steps in my build logs any longer in Beta 6.
@ksuther I see this a macOS project ? For this I did not try it yet, since the project is mobile only atm.
@oswaldo I do not use Cocoapods, I am using SPM to integrate my dependencies, where I currently assume this should work out of the box - at least I do not know what could cause this issues I have. I can also not find CONFIGURATION_BUILD_DIR within my Xcode project :(
@eskimo Great to hear the feedback reached the right place! I will continue checking with each new beta and monitoring the feedback.
I can still reproduce this issue under Xcode 15.0 Beta 5, seems like it was not fixed yet
I can confirm it's also not working for me when I want to drag and drop items between two sections in a list. If I remove the list, as described above, it works but within one list declaration I am not able to.
This is still an issue in Xcode 15.0 Beta 4
Seems to still not work in Xcode 15.0 Beta 3. I do still see the same error messages mentioned in the initial post. Feedback filed under: FB12550171
I do also face the crashing in the same situation. I have a parent child relationship which have a 1:many relationship. Deleting child elements works fine, but as soon as I want to delete the parent the application is crashing for me in Xcode 15.0 Beta 2. I do hope this is still a beta issue or there is some official of way of deleting such a relationship gracefully in the future.
Hey @joeycarmello thanks a lot for your hint. This actually fixes the compilation error, so building works fine but then the app shortcut does not show up in the Shortcuts app. But if I then remove the prefixes again and build again it works. But - if I then do a clean and try to build again it fails with the initial error message. All in all, very weird tbh. I currently assume that the setup I have is not fully compatible with the current beta. Which I really do hope gets fixed with the next beta though.
Unfortunately I am still experiencing this issue in Xcode 12 beta 3