Post

Replies

Boosts

Views

Activity

ERROR ITMS-90624: "Invalid Intent Vocabulary."
Hi there,When submitting to the app store with Xcode 11.4 (11E146) I receive the error:"ERROR ITMS-90624: "Invalid Intent Vocabulary. The AppIntentVocabulary.plist file in the Payload/Should I Run.app/Base.lproj folder can't contain the intent name "NextTrainIntent"."I'm submitting with the following AppIntentVocabulary.plist: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict> <key>IntentPhrases</key> <array> <dict> <key>IntentName</key> <string>NextTrainIntent</string> <key>IntentExamples</key> <array> <string>Get next train</string> <string>Get next train with SIR</string> <string>Get next train with Metro</string> <string>Get next train with Should I Run</string> </array> </dict> </array></dict></plist>with Base localization in the following directory: /Users/emma/Projects/Should I Run/Should I Run/Base.lproj/AppIntentVocabulary.plistI have an Intents.intentdefinition file with an intent with the title of NextTrain.I'm not sure why my submission is failing. The intent functions as expected when activated through the Shortcuts app, but I can't seem to ask Siri the phrases I've defined in my AppIntentVocabulary.plist.
1
0
980
Apr ’20
ld: symbol(s) not found for architecture x86_64
My builds are failing after adding a Today Extension to my project which uses Swift Packages. I've posted an example here: https://github.com/emma-k-alexandra/SymbolsIssueExampleProjectSteps to reproduce project:1. Create new iOS app2. Add Today Extension to app3. Add dependency https://github.com/emma-k-alexandra/WMATA.swift.git by Swift Packages menu4. Add "import WMATA" to TodayViewController.swift, and add any WMATA.swift related code to viewDidLoad(). I added "print(MetroRail(key: "WMATA"))"5. Run Today Extension target for iPhone 11 Pro Max.I receive the following error:Undefined symbols for architecture x86_64: "type metadata for WMATA.RailPrediction", referenced from: property wrapper backing initializer of Should_I_Run_Today_Extension.TrainView.prediction : WMATA.RailPrediction in TrainView.o "nominal type descriptor for WMATA.Line", referenced from: _symbolic Say_____G 5WMATA4LineO in Colors.o "WMATA.Station.lines.getter : [WMATA.Line]", referenced from: Should_I_Run_Today_Extension.gradientColors(WMATA.StationEntrance?) -> [SwiftUI.Color] in Colors.o "nominal type descriptor for WMATA.StationEntrance", referenced from: protocol conformance descriptor for WMATA.StationEntrance : Swift.Equatable in Should_I_Run_Today_Extension in WMATA.o "nominal type descriptor for WMATA.RailPrediction", referenced from: _symbolic _____ 5WMATA14RailPredictionV in WMATA.o protocol conformance descriptor for WMATA.RailPrediction : Swift.Identifiable in Should_I_Run_Today_Extension in WMATA.o _symbolic _____y_____G 7SwiftUI5StateV 5WMATA14RailPredictionV in TrainView.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)I'm using Xcode 11.4, and can't figure out how to fix this linking issue.
0
0
1.5k
Apr ’20
Composing Text Providers with  CLKTextProvider.​localizableTextProvider(​withStringsFileFormatKey:, textProviders:)
Are there any official examples of setting up a complication using localizableTextProvider(withStringsFileFormatKey:, textProviders:)? I can get the text provider to populate when producing a SampleTemplate, but whenever I try to generate a template using getTimelineEntries the text provider generated by localizableTextProvider the result is always blank, no text.Example (only supporting .utilitarianLarge):func getCurrentTimelineEntry(for complication: CLKComplication, withHandler handler: @escaping (CLKComplicationTimelineEntry?) -> Void) { // Call the handler with the current timeline entry let template = CLKComplicationTemplateUtilitarianLargeFlat() template.textProvider = CLKTextProvider.localizableTextProvider( withStringsFileFormatKey: "testComplication", textProviders: [ CLKSimpleTextProvider(text: "Hello"), CLKSimpleTextProvider(text: "World") ] ) handler(CLKComplicationTimelineEntry(date: Date(), complicationTemplate: template)) }and sampleTemplate asfunc getLocalizableSampleTemplate(for complication: CLKComplication, withHandler handler: @escaping (CLKComplicationTemplate?) -> Void) { // This method will be called once per supported complication, and the results will be cached switch complication.family { case .utilitarianLarge: let template = CLKComplicationTemplateUtilitarianLargeFlat() template.textProvider = CLKTextProvider.localizableTextProvider( withStringsFileFormatKey: "testComplication", textProviders: [ CLKSimpleTextProvider(text: "Hi"), CLKSimpleTextProvider(text: "World") ] ) handler(template) default: handler(nil) } }with ckcomplication.strings as"testComplication" = "%@ %@";The sample template will always display the text "Hi World", whereas the result from getCurrentTimelineEntry will always display an empty complication.Has anyone had luck composing text providers in this way?
2
0
2.1k
Mar ’19