Type 'intentHandler' does not conform to protocol 'INStartAudioCallIntentHandling' in SpeakBox app

I downloaded apple SpeakerBox application and I am getting errors in the IntentHandler.swift app. I am running it on XCode 8.0 GM

Replies

This specific error is caused by SE-0103 Make non-escaping closures the default. The closure parameter to

handle(startAudioCall:completion:)
needs to be marked with
@escaping
like this:
func handle(startAudioCall startAudioCallIntent: INStartAudioCallIntent, completion: @escaping (INStartAudioCallIntentResponse) -> Void) …

However, once you fix this you will discover other problems. It’s clear that the sample hasn’t been updated to account for the final Swift 3 changes. Please file a bug against it, and then post your bug number, just for the record.

If you have trouble fixing the other problems post back and we’ll take things from there.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

I discovered this issue and would like to follow the bug, please post, or I guess I can file a dup. The documentaiton for CallKit is incomplete for Xcode 8 GM, missing overviews.