Unable to launch WebDriverAgent because of xcodebuild failure

I am new in mobile app automation test and I unable to launch WebDriverAgent on iPhone real device, getting error below:

Error
An error occurred while creating a new Appium Server session: [WebDriverError] An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 70
xcodebuild error message:
. Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.

Please find attached appium server log as well:
_appium-server.log (19.3 KB)

I have also manual configured like bundle identifier, developer provisioning in WebDriverAgent Xcode project as followed YouTube video “https://www.youtube.com/watch?v=4E_Dcu6Ifc0”, but no luck, still getting same error message.

Please help.

Thanks

xcodebuild error 70 means that the target for the build was not found. It could be due to a mismatch of iOS versions, parameters, or (if using a real device) the UDID being wrong, or the device was not connected, switched off or locked.

Please see here for more information and other possible solutions:

Hey @wreed, my iOS app was installed correctly on my real iOS device by Appium, but the WebDriverAgent app was not installed.

Yes, exactly. You got error code 70.

Hi, @Yashwant_Rathore1 , are you able to resolve the error? i am also getting the same now