Hi everyone
I 'm trying to distribute my app with Testflight. When trying to submit a new build, I get the following errors:
I 'm using Xcode 15 beta 2.
Can anyone help me?
Post
Replies
Boosts
Views
Activity
Hi everyone
Yesterday, I updated my iPhone 14 to the newest iOS 17 beta release. Now, when I want to run my app on my iPhone, it crashes:
This doesn't happen when I run the app on the Simulator. I'm using Xcode 15 beta 2.
Can anyone help me?
I'm trying to archive some data in my SwiftUI app, using SwiftData. I implemented a Archive Model:
import Foundation
import SwiftData
@Model
class ArchiveData {
let archiveName: String
let archiveDate: Date
@Relationship(.cascade) var items: [Item]
init(archiveName: String, archiveDate: Date, items: [Item]) {
self.archiveName = archiveName
self.archiveDate = archiveDate
self.items = items
}
}
Then, I'm adding the data to the context:
let newArchive = ArchiveData(archiveName: name, archiveDate: Date.now, items: items)
context.insert(newArchive)
I can then display the archived data in a separate view. But when I restart the app, the items array of ArchiveData is empty.
I couldn't find out, where I made a mistake. Can anyone help me?