Multipeer issue - MCNearbyServiceAdvertiserDelegate "does not conform" error

I'm trying to convert a project to iOS 10 (using Xcode 8 Beta 6) which includes MultipeerConnectivity. Unfortunately, I'm immediately hitting a wall because as soon as I include MCNearbyServiceAdvertiserDelegate, I will continuously get an error that "ViewController does not conform to protocol MCNearbyServiceAdvertiserDelegate". It has only one required method, which I include (see the code below) but that doesn't seem to be recognized. And if I use the Fix command that Xcode prompts me with, it will just repeatedly put this method in - and then still tell me my class doesn't conform. (Swift 3 code symantics aside, this approach works fine in iOS 9 and Xcode 7.3.1)


import UIKit
import MultipeerConnectivity
class ViewController: UIViewController, MCNearbyServiceAdvertiserDelegate {

    func advertiser(_ advertiser: MCNearbyServiceAdvertiser, didReceiveInvitationFromPeer peerID: MCPeerID, withContext context: Data?, invitationHandler: (Bool, MCSession?) -> Void) {
        // should work
    }
}


Is there some new part of Swift 3.0 or iOS 10 that I'm missing? Am I missing something else that's obvious? Or is this a legitamate bug in Xcode?

Been seeing the same issue with MCNearbyServiceAdvertiserDelegate. Tried a couple of other examples also but not had any luck.


Edit: Just tried Beta 5 also and the same issue occurs.

I did some more digging today, and it seems some things are definitely in transition (as of Xcode 8 Beta 6). While XCode's "FIX" command, and the online documentation, provide the incorrect example above, I had to look to the iOS 10 APIs Differences page to find something that compiles:


https://developer.apple.com/library/prerelease/content/releasenotes/General/iOS10APIDiffs/Swift/MultipeerConnectivity.html


It lists the following code, and this seems to satisfy the "does not conform to protocol" error.


func advertiser(_ advertiser: MCNearbyServiceAdvertiser, didReceiveInvitationFromPeer peerID: MCPeerID, withContext context: Data?, invitationHandler: @escaping (Bool, MCSession?) -> Swift.Void) {
     // correct - no longer throws error
}


I'm now concerned what other Multipeer issues I might have, but will update this if I encounter them.

Multipeer issue - MCNearbyServiceAdvertiserDelegate "does not conform" error
 
 
Q