Wi-Fi Aware Sample doesn't build in Xcode 26.0 beta

Hello,

I'm trying to build the sample app from Building peer-to-peer apps that demonstrates Wi-Fi Aware. Upon downloading the example source code, opening it in Xcode 26.0 beta, and building the app, the compiler fails with:

DeviceDiscoveryPairingView.swift:8:8 No such module 'DeviceDiscoveryUI'

Is this a known issue? I know that DeviceDiscoveryUI was previously only a tvOS capability.

Thanks

Answered by DTS Engineer in 843308022

Are you building for the simulator? If so, try building for a real device.

Wi-Fi Aware isn’t available in the simulator, so you have to test this stuff on a real device. OTOH, the sample should build for the simulator, even if it’s not going to work, so I encourage you to file a bug about that.

Please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Are you building for the simulator? If so, try building for a real device.

Wi-Fi Aware isn’t available in the simulator, so you have to test this stuff on a real device. OTOH, the sample should build for the simulator, even if it’s not going to work, so I encourage you to file a bug about that.

Please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Thanks Quinn,

Yep, just building in the simulator. Hope to see support come there anyways, as for peer-to-peer testing, it's always hard to procure multiple devices. Thanks for your response and bug filed: FB17996161

Wi-Fi Aware Sample doesn't build in Xcode 26.0 beta
 
 
Q