admin管理员组

文章数量:1183716

i'm trying to integrate a shortcut into my ios application, but when i launch the shortcut it works fine but in the end my application crashes

   static var title: LocalizedStringResource = "Mettre à jour la base de données"
   static var description: LocalizedStringResource = "Met à jour la base de données des numéros bloqués"
   
   struct Success: IntentResult {
       var value: Never? = nil
       static var result: Success { Success(value: nil) }
   }
   
   public init() {}
   
   static var openAppWhenRun = true
   
   func perform() async throws -> Success {
       await MainActor.run {
           let viewModel = BlockedNumbersViewModel.shared
           viewModel.forceUpdateFilters()
       }
       try await Task.sleep(nanoseconds: 5_000_000_000)
       return .result
   }
} ```

本文标签: swiftIOS application crash when I launch intentStack Overflow