Also experiencing this problem across multiple frameworks, this is completely breaking my development progress :(
Post
Replies
Boosts
Views
Activity
Fixed in 12.2, but does that mean it will be fixed for iOS 13?
Anyone know of a work around for this?
Huge benefits I think depending on what the price is though. Being able to offload your builds is great and even if you are a solo developer you have users I am assuming that will test your app.
I have attempted to do this from both the web and directly in Xcode.
Unfortunately this is not possible in Xcode cloud since they seem to not have the earlier beta available :(
Completely broke my process
Looks like an @Model must be inserted into the context before use in SwiftUI
actor PreviewSampleData {
@MainActor
static var container: ModelContainer = {
let schema = Schema([Trip.self, BucketListItem.self, LivingAccommodation.self])
let configuration = ModelConfiguration(inMemory: true)
let container = try! ModelContainer(for: schema, configurations: [configuration])
let sampleData: [any PersistentModel] = [
Trip.preview, BucketListItem.preview, LivingAccommodation.preview
]
sampleData.forEach {
container.mainContext.insert($0)
}
return container
}()
@MainActor
static var previewTrip: Trip = {
let container = PreviewSampleData.container
let trip = Trip.preview
container.mainContext.insert(trip)
return trip
}()
}
#Preview {
MainActor.assumeIsolated {
List {
TripListItem(trip: PreviewSampleData.previewTrip)
}
.modelContainer(PreviewSampleData.container)
}
}
Interesting! not sure why I didn't try this 🙃
Same issue ? Tried both the current and the TestFlight version (4.3.1 and 4.4 beta) , playground works but app doesn’t.