how to do can like Tesla Application, show more than ten shortcuts in system shortcuts application
Post
Replies
Boosts
Views
Activity
func perform() async throws -> some IntentResult & ProvidesDialog & ReturnsValue {
let msg: String = await JDSiriKitShortCutsManager.handleShortCut(type: type ?? .flashLid)
let dialog = IntentDialog.responseSuccess(msg: msg)
return .result(value: msg, dialog: dialog)
}
AppIntents/PerformActionExecutorTask.swift:298: Fatal error: perform() returned types not declared in method signature
Did not declare ProvidesDialog but provided one
Did not declare ReturnsValue but provided one
func perform() async throws -> some IntentResult & ReturnsValue {
let msg: String = await JDSiriKitShortCutsManager.handleShortCut(type: type ?? .flashLid)
JDSirikitShortCutView(msg: msg))
return .result(value: "xvnkzjdfnkvdknfbnjknxdkvn")
}
AppIntents/PerformActionExecutorTask.swift:298: Fatal error: perform() returned types not declared in method signature
Did not declare ReturnsValue but provided one
使用UIImage加载图片
https://developer.apple.com/documentation/uikit/uiimage/creating_custom_symbol_images_for_your_app#3875972
https://developer.apple.com/documentation/uikit/uiimage/configuring_and_displaying_symbol_images_in_your_ui
SendProcessControlEvent:toPid: encountered an error: Error Domain=com.apple.dt.deviceprocesscontrolservice Code=8 "Failed to show Widget 'com.jiduauto.iphone.jdcomiphoneWidget' error: Error Domain=FBSOpenApplicationServiceErrorDomain Code=5 "The request to open "com.apple.springboard" failed." UserInfo={NSLocalizedDescription=The request to open "com.apple.springboard" failed., NSLocalizedFailureReason=Unexpected error type., NSUnderlyingError=0x600001ae0c90 {Error Domain=BSServiceConnectionErrorDomain Code=3 "XPC error received on message reply handler" UserInfo={BSErrorCodeDescription=OperationFailed, NSLocalizedFailureReason=XPC error received on message reply handler}}, BSErrorCodeDescription=InvalidResponse}." UserInfo={NSLocalizedDescription=Failed to show Widget 'com.jiduauto.iphone.jdcomiphoneWidget' error: Error Domain=FBSOpenApplicationServiceErrorDomain Code=5 "The request to open "com.apple.springboard" failed." UserInfo={NSLocalizedDescription=The request to open "com.apple.springboard" failed., NSLocalizedFailureReason=Unexpected error type., NSUnderlyingError=0x600001ae0c90 {Error Domain=BSServiceConnectionErrorDomain Code=3 "XPC error received on message reply handler" UserInfo={BSErrorCodeDescription=OperationFailed, NSLocalizedFailureReason=XPC error received on message reply handler}}, BSErrorCodeDescription=InvalidResponse}., NSUnderlyingError=0x600001ae1320 {Error Domain=FBSOpenApplicationServiceErrorDomain Code=5 "The request to open "com.apple.springboard" failed." UserInfo={NSLocalizedDescription=The request to open "com.apple.springboard" failed., NSLocalizedFailureReason=Unexpected error type., NSUnderlyingError=0x600001ae0c90 {Error Domain=BSServiceConnectionErrorDomain Code=3 "XPC error received on message reply handler" UserInfo={BSErrorCodeDescription=OperationFailed, NSLocalizedFailureReason=XPC error received on message reply handler}}, BSErrorCodeDescription=InvalidResponse}}}
Domain: DTXMessage
Code: 1
User Info: {
DVTErrorCreationDateKey = "2024-02-26 02:33:05 +0000";
}
System Information
macOS Version 13.5.2 (Build 22G91)
Xcode 15.0 (22265) (Build 15A240d)
Timestamp: 2024-02-26T10:33:05+08:00