We replace MCAdvertiserAssistant with MCNearbyServiceAdvertiser because the former fails to work in the latest Xcode version 11.x. We got Declined when using MCAdvertiserAssistant. There is post in stack overflow: Multipeer Connectivity not working after Xcode 11 update https://stackoverflow.com/questions/58563621/multipeer-connectivity-not-working-after-xcode-11-update