Here you can find the entire crash log. I think is important to mention that I present this view that only have a textfield in the middle, nothing else, an the error happen once I touch the keyboard
Crash log
Post
Replies
Boosts
Views
Activity
Well at the end I find a solution, but Im quite sure that was probably to complicated.
My app was generated with Xcode 10, so I decided to create a new project with the Xcode 13 and move all the folders and configurations to this new project, that solved my error and any other problem that I was having.
If anybody had a better solution please shared.
@PinStudios Where you able to solve this? Im having the same issue, was able to solve it for lower version with the code below, but then it stops working for iOS 17.
struct MyWidgetBundle: WidgetBundle {
var body: some Widget {
if #available(iOS 17, *) {
// If iOS 17 allow both widgets + live activity
return WidgetBundleBuilder.buildBlock(MyWidget(), MyFavouriteWidget(), MyWidgetLiveActivity())
} else {
// This widgets wrap other validations to allow different widgets depending of the version
return Widgets()
}
}
private func Widgets() -> some Widget {
if #available(iOS 16.1, *) {
// If iOS 16.1 allow Favourite widget + live activity
return WidgetBundleBuilder.buildBlock(MyFavouriteWidget(), MyWidgetLiveActivity())
} else {
// If lower just allow Favourite Widget
return MyFavouriteWidget()
}
}
}