Hello,
My goal is to enable users to perform a freeform search request for any product I sell using a spoken phrase, for example, "Hey Siri, search GAMING CONSOLES on MyCatalogApp". The result would launch MyCatalogApp and navigate to a search results page displaying gaming consoles.
I have defined a SearchIntent (using the .system.search schema) and a Shortcut to accomplish this.
However, Siri doesn't seem to be able to correctly parse the spoken phrase, extract the search string, and provide it as the critiria term within SearchIntent.
What am I doing wrong?
Here is the SearchIntent. Note the print() statement outputs the search string--which in the scenario above would be "GAMING CONSOLES"--but it doesn't work.
import AppIntents
@available(iOS 17.2, *)
@AppIntent(schema: .system.search)
struct SearchIntent: ShowInAppSearchResultsIntent {
static var searchScopes: [StringSearchScope] = [.general]
@Parameter(title: "Criteria")
var criteria: StringSearchCriteria
static var title: LocalizedStringResource = "Search with MyCatalogApp"
@MainActor
func perform() async throws -> some IntentResult {
let searchString = criteria.term
print("**** Search String: \(searchString) ****") // tmp debugging
try await MyCatalogSearchHelper.search(for: searchString) // fetch results via my async fetch API
return .result()
}
}
Here's the Shortcuts definition:
import AppIntents
@available(iOS 17.2, *)
struct Shortcuts: AppShortcutsProvider {
@AppShortcutsBuilder
static var appShortcuts: [AppShortcut] {
AppShortcut(
intent: SearchIntent(),
phrases: ["Search for \(\.$criteria) on \(.applicationName)."],
shortTitle: "Search", systemImageName: "magnifyingglass"
)
}
}
Thanks for any help!
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hello,
At my company, we're trying to run an App Store A/B test on alternate app icons. However, the App Store is rejecting the binary when we upload it (see email below). We're hoping someone out there knows the solution to this issue.
Background
Currently, our app is built with one target from amongst several different schemes. These schemes are used for various versions, including developer debug builds, TestFlight builds, App Store builds, and others. Each scheme has its own distinct app icon specified in Xcode, as shown in the image below:
In our project, we've added the alternate app icons for the two App Store treatments as recommended according to Apple's documentation (we named them "AppIcon-T1" and "AppIcon-T2"). These are located inside our "Images.xcassets" asset catalog.
Each alternate app icon's properties are configured as:
iOS: Single Size
macOS: None
watchOS: None
Appearances: None
Gamut: Any
The Problem
After making the changes above, creating an App Store build succeeds as usual. However, every time we submit an App Store build, we receive this email from Apple:
Please correct the following issues and upload a new binary to App Store Connect.
ITMS-90895: Missing Icon - The Info.plist key CFBundleIcons~ipad.CFBundleAlternateIcons contains an entry “AppIcon-Enterprise” that references asset “AppIcon-Enterprise.” No such asset is present in the asset catalog.
ITMS-90895: Missing Icon - The Info.plist key CFBundleIcons~ipad.CFBundleAlternateIcons contains an entry “AppIcon-Debug” that references asset “AppIcon-Debug.” No such asset is present in the asset catalog.
ITMS-90895: Missing Icon - The Info.plist key CFBundleIcons~ipad.CFBundleAlternateIcons contains an entry “AppIcon-T2” that references asset “AppIcon-T2.” No such asset is present in the asset catalog.
ITMS-90895: Missing Icon - The Info.plist key CFBundleIcons~ipad.CFBundleAlternateIcons contains an entry “AppIcon-T1” that references asset “AppIcon-T1.” No such asset is present in the asset catalog.
ITMS-90895: Missing Icon - The Info.plist key CFBundleIcons.CFBundleAlternateIcons contains an entry “AppIcon-Enterprise” that references asset “AppIcon-Enterprise.” No such asset is present in the asset catalog.
ITMS-90895: Missing Icon - The Info.plist key CFBundleIcons.CFBundleAlternateIcons contains an entry “AppIcon-Debug” that references asset “AppIcon-Debug.” No such asset is present in the asset catalog.
ITMS-90895: Missing Icon - The Info.plist key CFBundleIcons.CFBundleAlternateIcons contains an entry “AppIcon-T2” that references asset “AppIcon-T2.” No such asset is present in the asset catalog.
ITMS-90895: Missing Icon - The Info.plist key CFBundleIcons.CFBundleAlternateIcons contains an entry “AppIcon-T1” that references asset “AppIcon-T1.” No such asset is present in the asset catalog.
Troubleshooting
According to those error messages, the problem is that the alternate app icons aren't being included in the asset catalog. However, we've double-checked that everything seems to be correct in terms of project setup:
The alternate icons are in our "Images.xcassets" catalog (just like our existing app icon)
We made sure that "Include all app icon assets" is checked in our project file under ➤ General ➤ App Icons and Launch Screen
The alternate app icons are specified as App Icons, not Image Sets
The alternate app icons have their target membership set correctly
The alternate app icons are in PNG format at 1024 x 1024 size
If we remove the alternate app icons from the asset catalog and rebuild and resubmit, the App Store issue disappears.
Any help appreciated. Thank you!