Unable to launch xcode code 65

Hello, i am having trouble launching appium inspector on my real device.

I get xcodebuild exited with code ‘65’ and signal ‘null’ even if the WebDriverAgent is installed on the device

I am using appium 2.0
i have appium driver installed
i did everything https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md except the ./Scripts/bootstrap -d cause there is no such file or directory.

Build on xcode goes successfully and it is shown in my device and works.

{
“platformName”: “iOS”,
“appium:platformVersion”: “16.2”,
“appium:deviceName”: “iPhone de Dario”,
“appium:noReset”: true,
“appium:udid”: “my phone udid”,
“appium:xcodeOrgId”: “team id from apple website”,
“appium:xcodeSigninId”: “Iphone Developer”,
“appium:automationName”: “XCUITest”,
“appium:showXcodeLog”: true
}
this one part of the logs

The connection has been closed
[debug] [[email protected]] Event ‘newSessionStarted’ logged at 1674075156600 (20:52:36 GMT+0000 (Western European Standard Time))
[debug] [[email protected]] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
[debug] [[email protected]] xcodebuild error message:
[debug] [[email protected]]
[debug] [[email protected]] Command line invocation:
[debug] [[email protected]]
[debug] [[email protected]] /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild build-for-testing test-without-building -project /Users/dariosilva/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/dariosilva/Library/Developer/Xcode/DerivedData/WebDriverAgent-ditogbtvxbizadfndvusiwfwloyp -destination id=00008101-00056DD238E1401E IPHONEOS_DEPLOYMENT_TARGET=16.2 -xcconfig /var/folders/51/h9n927f91fs__s8hnzdc37640000gn/T/2023018-1306-1mi5icu.89s5/appium-temp.xcconfig GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO
[debug] [[email protected]] User defaults from command line:
[debug] [[email protected]] IDEDerivedDataPathOverride = /Users/dariosilva/Library/Developer/Xcode/DerivedData/WebDriverAgent-ditogbtvxbizadfndvusiwfwloyp
[debug] [[email protected]] IDEPackageSupportUseBuiltinSCM = YES
[debug] [[email protected]] Build settings from command line:
[debug] [[email protected]] COMPILER_INDEX_STORE_ENABLE = NO
[debug] [[email protected]] GCC_TREAT_WARNINGS_AS_ERRORS = 0
[debug] [[email protected]] IPHONEOS_DEPLOYMENT_TARGET = 16.2
[debug] [[email protected]] Build settings from configuration file ‘/var/folders/51/h9n927f91fs__s8hnzdc37640000gn/T/2023018-1306-1mi5icu.89s5/appium-temp.xcconfig’:
[debug] [[email protected]] CODE_SIGN_IDENTITY = iPhone Developer
[debug] [[email protected]] DEVELOPMENT_TEAM = PW937BN3ZQ
[debug] [[email protected]] Prepare packages
[debug] [[email protected]] note: Using codesigning identity override: iPhone Developer
[debug] [[email protected]] Computing target dependency graph and provisioning inputs
[debug] [[email protected]] Create build description
[debug] [[email protected]] Build description signature: 3a8b988ad2d194c8fbdfcc8f2dc3988b
[debug] [[email protected]] Build description path: /Users/dariosilva/Library/Developer/Xcode/DerivedData/WebDriverAgent-ditogbtvxbizadfndvusiwfwloyp/Build/Intermediates.noindex/XCBuildData/3a8b988ad2d194c8fbdfcc8f2dc3988b-desc.xcbuild
[debug] [[email protected]] note: Building targets in dependency order
[debug] [[email protected]] /Users/dariosilva/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj: error: No profiles for ‘com.iesting.WebDriverAgent.xctrunner’ were found: Xcode couldn’t find any iOS App Development provisioning profiles matching ‘com.iesting.WebDriverAgent.xctrunner’. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target ‘WebDriverAgentRunner’ from project ‘WebDriverAgent’)
[debug] [[email protected]] ** TEST BUILD FAILED **
[debug] [[email protected]] 2023-01-18 20:52:36.308 xcodebuild[5221:45180] [MT] IDETestOperationsObserverDebug: 0.002 elapsed – Testing started completed.
[debug] [[email protected]] 2023-01-18 20:52:36.308 xcodebuild[5221:45180] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec – start
[debug] [[email protected]] 2023-01-18 20:52:36.308 xcodebuild[5221:45180] [MT] IDETestOperationsObserverDebug: 0.002 sec, +0.002 sec – end
[debug] [[email protected]] Test session results, code coverage, and logs:
[debug] [[email protected]] /Users/dariosilva/Library/Developer/Xcode/DerivedData/WebDriverAgent-ditogbtvxbizadfndvusiwfwloyp/Logs/Test/Test-WebDriverAgentRunner-2023.01.18_20-52-33-+0000.xcresult
[debug] [[email protected]] Testing failed:
[debug] [[email protected]] No profiles for ‘com.iesting.WebDriverAgent.xctrunner’ were found: Xcode couldn’t find any iOS App Development provisioning profiles matching ‘com.iesting.WebDriverAgent.xctrunner’. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.
[debug] [[email protected]] Test target WebDriverAgentRunner encountered an error (The bundle identifier for WebDriverAgentRunner-Runner.app couldn’t be read. No such file or directory: “/Users/dariosilva/Library/Developer/Xcode/DerivedData/WebDriverAgent-ditogbtvxbizadfndvusiwfwloyp/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app”.)
[debug] [[email protected]] ** TEST EXECUTE FAILED **
[debug] [[email protected]] Testing started. 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.
[debug] [[email protected]] at quitAndUninstall (/Users/dariosilva/.appium/node_modules/appium-xcuitest-driver/lib/driver.js:584:15)
[debug] [[email protected]] at /Users/dariosilva/.appium/node_modules/appium-xcuitest-driver/lib/driver.js:619:11
[debug] [[email protected]] at wrapped (/Users/dariosilva/.appium/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:95:13)
[debug] [[email protected]] at retry (/Users/dariosilva/.appium/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:68:13)
[debug] [[email protected]] at retryInterval (/Users/dariosilva/.appium/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:105:10)
[debug] [[email protected]] at /Users/dariosilva/.appium/node_modules/appium-xcuitest-driver/lib/driver.js:599:7

I have been struggling for 3 days to fix this issue and i can’t find any solution. Can someone help please?

  1. your iCloud account should be included into your team developer account.
  2. did you downloaded developer profiles? open xCode. add your account into it. and download profiles.
    see in error link ->
  3. tested device UDID should be added into your team profile also (ask your team developer to do this)