I tried to test out the new Wi-Fi aware framework but encountered the issue in the title. My operation steps are as follows: 1) create a hello world project using Xcode 26.0 beta 2) add Wi-Fi Aware entitlement and service following the sample code in "Building peer-to-peer apps" 3) run my code on an iPhone 16 Pro and fail at the building stage.
The error message is "Provisioning profile "iOS Team Provisioning Profile: [my project name]" doesn't include the com.apple.developer.wifi-aware entitlement." I also tried to build the sample app but faced the same issue.
Hmmmm, this is working for me. Here’s what I did:
-
Using Xcode 26.0 beta on macOS 15.5, I created a new project from the iOS > App template.
-
In Signing & Capabilities, I added Wi-Fi Aware.
-
And enabled the Publish option.
-
I selected Any iOS Device as my run destination.
-
And then built the app.
This is what I see:
% codesign -d --entitlements - Test788807.app
Executable=/Users/quinn/Library/Developer/Xcode/DerivedData/Test788807-dcmkbvkgvfliviecoruqexidkqbe/Build/Products/Debug-iphoneos/Test788807.app/Test788807
[Dict]
[Key] application-identifier
[Value]
[String] SKMME9E2Y8.com.example.apple-samplecode.Test788807
[Key] com.apple.developer.team-identifier
[Value]
[String] SKMME9E2Y8
[Key] com.apple.developer.wifi-aware
[Value]
[Array]
[String] Publish
[Key] get-task-allow
[Value]
[Bool] true
% security cms -D -i Test788807.app/embedded.mobileprovision | plutil -p -
{
…
"Entitlements" => {
"application-identifier" => "SKMME9E2Y8.com.example.apple-samplecode.Test788807"
"com.apple.developer.team-identifier" => "SKMME9E2Y8"
"com.apple.developer.wifi-aware" => [
0 => "Publish"
1 => "Subscribe"
]
"get-task-allow" => 1
"keychain-access-groups" => [
0 => "SKMME9E2Y8.*"
1 => "com.apple.token"
]
}
…
}
The app claims com.apple.developer.wifi-aware
with the Publish
option and that claim is authorised by the development profile.
Are you a member of a paid team? Many capabilities are only available to paid teams. The canonical listing of such things is Developer Account > Reference > Supported capabilities (iOS). It hasn’t been updated to cover the Wi-Fi Aware capability yet (r. 153813100) but, when it is, I suspect that there will only be checks in the first two columns.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"