Posts

Post not yet marked as solved
2 Replies
2.8k Views
Honestly I'm not quite sure where to search for, or how to get technical support for the new Shortcuts app. Basically, I'm wondering if the Shortcuts app supports custom error messages.My app has a custom intent, and if certain conditions aren't met it will respond with an error.When I trigger the shortcut directly from Siri, the error is shown (as expected) in the response: "Hmm, something went wrong. <App Name> says, "<My Error Message>".However, if I trigger the shortcut from the Shortcuts app, I just receive an alert saying "An unknown error occured" with no further details.Is this a bug or am I constructing my error response in some way that the Shortcuts app cannot understand:URActionIntentResponse* response = [[URActionIntentResponse alloc] initWithCode:URActionIntentResponseCodeFailure userActivity:nil]; response.error = @"Foobar"; self.completion(response);
Posted
by pqvst.
Last updated
.
Post not yet marked as solved
13 Replies
5.9k Views
- I have an iOS app that targets iOS 8.- It includes an Intent Extension (for Siri Shortcuts).- It runs perfectly fine on iOS 12 (device + simulator) and 10 (simulator).- It crashes immediately in the iOS 8 simulator and outputs the following: dyld: Library not loaded: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices Referenced from: /System/Library/Frameworks/Intents.framework/Intents Reason: no suitable image found. Did find: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices: mach-o, but not built for iOS simulatorI realize that I won't be able to use the Intents Extension on older versions of iOS, but I still want my main app to work. From what I've read online, I should still be able to target 8 even though I use SiriKit. Any Intent related code has been guarded against when iOS < 12.My project is configured like this:- Project Deployment Target: 8.0- Main App Deployment Target: 8.0- Intents Extension Deployment Target: 12.0I have tested some things to try to figure out what exactly is causing the problem:- Removing all my Intents related code in the main app => Does not work- Removing the Intent Extension target => Does not work- Removing the Intent Definition File => WorksIs this an issue with Xcode/Simulator?
Posted
by pqvst.
Last updated
.