我正在使用 GKPeerPickerController ,我需要使用 wifi 发送消息,所以我使用以下代码
picker = [[GKPeerPickerController alloc] init];
picker.connectionTypesMask= GKPeerPickerConnectionTypeOnline;
picker.delegate = self;
但是当我使用此错误时
Terminating app due to uncaught exception 'GKInvalidArgumentException', reason: 'A GKPeerPickerController must support GKPeerPickerConnectionTypeNearby at a minimum.'
请帮助如何解决它?