I kept receiving this error while attempting to link devices in simulator using Multipeer Connectivity, MCSession, MCNearbyServiceBrowser, and MCNearbyServiceAdvertiser. I fixed it by setting the delegates for each of those three variables to self immediately after changing them to their final state instead of all in viewDidLoad(). Hope this helps someone!