App crash with MultipeerConnectivity on iOS14

Hi,

I have a problem that the app crashes when using MCNearbyServiceBrowser startBrowsingForPeers on iOS14.
It occurs in the process of repeating startBrowsingForPeers and stopBrowsingForPeers of MCNearbyServiceBrowser every few seconds.
This does not occur on iOS 13 and below.

For example, it occurs when you call the following method.

Code Block
- (void)switchBrowsing
{
[NSTimer scheduledTimerWithTimeInterval:0.5f
target:self
selector:@selector(switchBrowsing)
userInfo:nil
repeats:NO];
[self stopBrowsingForPeers];
[self startBrowsingForPeers];
}


Environment:
  • iPhone XR(MT0G2J/A) running iOS 14.0 beta6

  • iPad 6th(MR7G2J/A) running iPadOS 14.0 beta7

Thanks.

Replies

Were you able to solve this? We are seeing a similar problem on iOS 14+ only.

Buenas, hace unos meses estoy intentando controlar este problema. Consulte al soporte tecnico y no tuve suerte.