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] [AppiumDriver@fa9a] Event ‘newSessionStarted’ logged at 1674075156600 (20:52:36 GMT+0000 (Western European Standard Time))
[debug] [AppiumDriver@fa9a] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
[debug] [AppiumDriver@fa9a] xcodebuild error message:
[debug] [AppiumDriver@fa9a]
[debug] [AppiumDriver@fa9a] Command line invocation:
[debug] [AppiumDriver@fa9a]
[debug] [AppiumDriver@fa9a] /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] [AppiumDriver@fa9a] User defaults from command line:
[debug] [AppiumDriver@fa9a] IDEDerivedDataPathOverride = /Users/dariosilva/Library/Developer/Xcode/DerivedData/WebDriverAgent-ditogbtvxbizadfndvusiwfwloyp
[debug] [AppiumDriver@fa9a] IDEPackageSupportUseBuiltinSCM = YES
[debug] [AppiumDriver@fa9a] Build settings from command line:
[debug] [AppiumDriver@fa9a] COMPILER_INDEX_STORE_ENABLE = NO
[debug] [AppiumDriver@fa9a] GCC_TREAT_WARNINGS_AS_ERRORS = 0
[debug] [AppiumDriver@fa9a] IPHONEOS_DEPLOYMENT_TARGET = 16.2
[debug] [AppiumDriver@fa9a] Build settings from configuration file ‘/var/folders/51/h9n927f91fs__s8hnzdc37640000gn/T/2023018-1306-1mi5icu.89s5/appium-temp.xcconfig’:
[debug] [AppiumDriver@fa9a] CODE_SIGN_IDENTITY = iPhone Developer
[debug] [AppiumDriver@fa9a] DEVELOPMENT_TEAM = PW937BN3ZQ
[debug] [AppiumDriver@fa9a] Prepare packages
[debug] [AppiumDriver@fa9a] note: Using codesigning identity override: iPhone Developer
[debug] [AppiumDriver@fa9a] Computing target dependency graph and provisioning inputs
[debug] [AppiumDriver@fa9a] Create build description
[debug] [AppiumDriver@fa9a] Build description signature: 3a8b988ad2d194c8fbdfcc8f2dc3988b
[debug] [AppiumDriver@fa9a] Build description path: /Users/dariosilva/Library/Developer/Xcode/DerivedData/WebDriverAgent-ditogbtvxbizadfndvusiwfwloyp/Build/Intermediates.noindex/XCBuildData/3a8b988ad2d194c8fbdfcc8f2dc3988b-desc.xcbuild
[debug] [AppiumDriver@fa9a] note: Building targets in dependency order
[debug] [AppiumDriver@fa9a] /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] [AppiumDriver@fa9a] ** TEST BUILD FAILED **
[debug] [AppiumDriver@fa9a] 2023-01-18 20:52:36.308 xcodebuild[5221:45180] [MT] IDETestOperationsObserverDebug: 0.002 elapsed – Testing started completed.
[debug] [AppiumDriver@fa9a] 2023-01-18 20:52:36.308 xcodebuild[5221:45180] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec – start
[debug] [AppiumDriver@fa9a] 2023-01-18 20:52:36.308 xcodebuild[5221:45180] [MT] IDETestOperationsObserverDebug: 0.002 sec, +0.002 sec – end
[debug] [AppiumDriver@fa9a] Test session results, code coverage, and logs:
[debug] [AppiumDriver@fa9a] /Users/dariosilva/Library/Developer/Xcode/DerivedData/WebDriverAgent-ditogbtvxbizadfndvusiwfwloyp/Logs/Test/Test-WebDriverAgentRunner-2023.01.18_20-52-33-+0000.xcresult
[debug] [AppiumDriver@fa9a] Testing failed:
[debug] [AppiumDriver@fa9a] 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] [AppiumDriver@fa9a] 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] [AppiumDriver@fa9a] ** TEST EXECUTE FAILED **
[debug] [AppiumDriver@fa9a] 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] [AppiumDriver@fa9a] at quitAndUninstall (/Users/dariosilva/.appium/node_modules/appium-xcuitest-driver/lib/driver.js:584:15)
[debug] [AppiumDriver@fa9a] at /Users/dariosilva/.appium/node_modules/appium-xcuitest-driver/lib/driver.js:619:11
[debug] [AppiumDriver@fa9a] at wrapped (/Users/dariosilva/.appium/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:95:13)
[debug] [AppiumDriver@fa9a] at retry (/Users/dariosilva/.appium/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:68:13)
[debug] [AppiumDriver@fa9a] at retryInterval (/Users/dariosilva/.appium/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:105:10)
[debug] [AppiumDriver@fa9a] 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?