Post

Replies

Boosts

Views

Activity

coreml Fetching decryption key from server failed
My iOS app supports iOS 18, and I’m using an encrypted CoreML model secured with a key generated from Xcode. Every few months (around every 3 months), the encrypted model fails to load for both me and my users. When I investigate, I find this error: coreml Fetching decryption key from server failed: noEntryFound("No records found"). Make sure the encryption key was generated with correct team ID To temporarily fix it, I delete the old key, generate a new one, re-encrypt the model, and submit an app update. This resolves the issue, but only for a while. This is a terrible experience for users and obviously not a sustainable solution. I want to understand: Why is this happening? Is there a known expiration or invalidation policy for CoreML encryption keys? How can I prevent this issue permanently? Any insights or official guidance would be really appreciated.
5
2
498
Jul ’25
How to avoid rebuild view when tap on different button on NavigationSplitView
I have tried apple example Bringing robust navigation structure to your SwiftUI app so my code looks like this NavigationSplitView( columnVisibility: $navigationModel.columnVisibility ) { List( categories, selection: $navigationModel.selectedCategory ) { category in NavigationLink(category.localizedName, value: category) } .navigationTitle("Categories") .toolbar { ExperienceButton(isActive: $showExperiencePicker) } } detail: { NavigationStack(path: $navigationModel.recipePath) { RecipeGrid(category: navigationModel.selectedCategory) } } Details View struct RecipeGrid: View { var category: Category? var dataModel = DataModel.shared var body: some View { ZStack { if let category = category { ScrollView { LazyVGrid(columns: columns) { ForEach(dataModel.recipes(in: category)) { recipe in NavigationLink(value: recipe) { RecipeTile(recipe: recipe) } .buttonStyle(.plain) } } .padding() } .navigationTitle(category.localizedName) .navigationDestination(for: Recipe.self) { recipe in RecipeDetail(recipe: recipe) { relatedRecipe in NavigationLink(value: relatedRecipe) { RecipeTile(recipe: relatedRecipe) } .buttonStyle(.plain) } } } else { Text("Choose a category") .navigationTitle("") } } } var columns: [GridItem] { [ GridItem(.adaptive(minimum: 240)) ] } } My issue is if I go to details view then tap on other sidebar item after that return to same tap, it will return to rootview also onAppear it toggled! that mean the view did rebuild itself watch this video https://a.cl.ly/YEuD8ZXr on Apple News app it will stay on save view it won't rebuild or return to rootview when I change sidebar item watch this the video] https://a.cl.ly/12uRO4vz I want same behavior, but I don't know how can I do it I didn't find any question here or any article explain how to do the same behavior as Apple News app
0
0
438
Dec ’22