User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES
Prepare packages
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (2 targets)
Target ‘WebDriverAgentRunner’ in project ‘WebDriverAgent’
➜ Implicit dependency on target ‘WebDriverAgentLib’ in project ‘WebDriverAgent’ via file ‘WebDriverAgentLib.framework’ in build phase ‘Link Binary’
Target ‘WebDriverAgentLib’ in project ‘WebDriverAgent’ (no dependencies)
/Users/xxxx/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj: error: Provisioning profile “xxx_uat_development” has app ID “com.xxxxx.xxxx-uat”, which does not match the bundle ID “com.facebook.WebDriverAgentRunner.xctrunner”. (in target ‘WebDriverAgentRunner’ from project ‘WebDriverAgent’)
/Users/xxx/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj: error: Provisioning profile “xxx-uat_development” doesn’t match the entitlements file’s value for the application-identifier entitlement. Profile qualification is using entitlement definitions that may be out of date. Connect to network to update. (in target ‘WebDriverAgentRunner’ from project ‘WebDriverAgent’)
2025-07-17 12:05:00.898 xcodebuild[71939:965078] Writing error result bundle to /var/folders/bn/kfjf_8q94l524d446g61k_sh0000gn/T/ResultBundle_2025-17-07_12-05-0000.xcresult
xcodebuild: error: Failed writing xctestrun file: The folder “WebDriverAgentRunner_iphoneos17.2-arm64.xctestrun” doesn’t exist..
Failed to run the installation step: “Building WebDriverAgentRunner…”.
Failed to run the installation command.
After these steps, WebDriverAgent should install correctly. The key is ensuring the bundle ID in Xcode exactly matches the App ID in your provisioning profil
Those versions seem to be compatible. Based on your error log, you got 2 errors:
Provisioning profile “xxx_uat_development” has app ID “com.xxxxx.xxxx-uat”, which does not match the bundle ID “com.facebook.WebDriverAgentRunner.xctrunner”
You’re trying to build WebDriverAgentRunner, which has the bundle ID: com.facebook.WebDriverAgentRunner.xctrunner. But your provisioning profile is tied to a different app: com.xxxxx.xxxx-uat
doesn't match the entitlements file’s value for the application-identifier entitlement
This means the provisioning profile and entitlements aren’t aligned.
The workaround I suggest is to create a Proper Provisioning Profile for WebDriverAgent. Read more here: