Post

Replies

Boosts

Views

Activity

Error on Multipeer Connectivity after updating to Xcode 12 and iPadOS 14
Dear all, I ask you for some help after receiving an error while I was executing the following piece of code. session = MCSession(peer: MCPeerID(displayName: UIDevice.current.name), securityIdentity: nil, encryptionPreference: .optional ) session?.delegate = self assistant = MCAdvertiserAssistant(serviceType: "PlayWithEyes", discoveryInfo: nil, session: session!) browser = MCBrowserViewController(serviceType: "PlayWithEyes", session: session! ) browser?.delegate = self assistant!.start() browser?.modalPresentationStyle = .formSheet present(browser!, animated: true, completion: nil) I received the following runtime error: Exception NSException * "-[MCAdvertiserAssistant advertiser:didNotStartAdvertisingPeer:]: unrecognized selector sent to instance 0x280130ee0" 0x0000000282461e00 Has anyone of you some ideas? The code works well on the simulator, but no in the physical device. Thank you in advance, Mirko Franco
6
0
2k
Sep ’20