Posts

Post not yet marked as solved
1 Replies
533 Views
Apple Music Kit API will throw an Unauthorized 403 error when I log in successfully using an Apple Music account that has no Apple Music Subscription. After I successfully log in with my credentials, I will see a "Play full songs on the web" screen that indicates a successful log in. When I click "try it now" or "not now," the API will throw a "AUTHORIZATION_ERROR: Unauthorized." Authorization status will be set to 0, preview only will be set to false. Shouldn't the authorization be a success after the user has logged in? Ideally, the status should be a 1and preview true. I think what is missing is the consent screen which shows up only when the user is a subscribed member.
Posted
by karcilla.
Last updated
.
Post not yet marked as solved
0 Replies
441 Views
I am currently making a Course/Homework Tracker App that tracks your classes. I have a tab that displays the courses that the user has created. When the user first uses the app, however, they do not have any courses saved, so this tab is empty. import CoreData struct MyHabits: View {   @State var addCategory = false;   @State var editCategory = false;           @State var categoryToEdit : Category?   @State var title : String   @State var date : String       @FetchRequest(entity: Category.entity(),          sortDescriptors: [            NSSortDescriptor(keyPath: \Category.title, ascending: true)          ], animation: .spring()   )       var results: FetchedResults<Category>   @Environment(\.managedObjectContext) var context ... LazyVGrid(columns: Array(repeating: GridItem(.flexible(), spacing: 0), count: 2), spacing: 20) {                           if results.count == 0 {               Text("No Categories")                 .font(.title)                 .fontWeight(.heavy)             } else {                   ForEach(results, id: \.self) { category in ... &#9;&#9;&#9;&#9;&#9; // error occurs here, with the "results" underlined refrence.... @main struct habit_tracker_01App: App {   let persistenceController = PersistenceController.shared       var body: some Scene {     WindowGroup {       NavigationBar()             }   } } However, I am currently getting an error when I use ForEach loop to display empty results. The error: Thread 1: EXCBADINSTRUCTION (code=EXCI386INVOP, subcode=0x0) How do I go about fixing this problem?
Posted
by karcilla.
Last updated
.