Error when start the Appium from IntelliJ / terminal

Hello,
I’m using the latest version of the Appium server GUI and I saw something strange,
When I start the server from the GUI app and than the inspector everything works fine but when I start the server from the terminal in the IntelliJ / terminal and than start the inspector, I get error at the inspector :

Failed to create session. An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65 xcodebuild error message: Command line invocation: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/shlomigross/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu -destination id=e10ab23cb7bc5f41e4b24b5a02674fc7de8d3c30 IPHONEOS_DEPLOYMENT_TARGET=15.3 -xcconfig /var/folders/t2/xdcry0n51j52z3k_c0wr4f0c0000gn/T/2022116-43705-1mi58rh.z4mc/appium-temp.xcconfig GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO User defaults from command line: IDEDerivedDataPathOverride = /Users/shlomigross/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu IDEPackageSupportUseBuiltinSCM = YES Build settings from command line: COMPILER_INDEX_STORE_ENABLE = NO GCC_TREAT_WARNINGS_AS_ERRORS = 0 IPHONEOS_DEPLOYMENT_TARGET = 15.3 Build settings from configuration file ‘/var/folders/t2/xdcry0n51j52z3k_c0wr4f0c0000gn/T/2022116-43705-1mi58rh.z4mc/appium-temp.xcconfig’: CODE_SIGN_IDENTITY = iPhone Developer DEVELOPMENT_TEAM = 68QPQBE37Z 2022-02-16 17:04:01.691 xcodebuild[43762:2523263] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-19527/DTDeviceKitBase/DTDKRemoteDeviceData.m:373 Details: (null) deviceType from e10ab23cb7bc5f41e4b24b5a02674fc7de8d3c30 was NULL when -platform called. Object: <DTDKMobileDeviceToken: 0x7fed12025610> Method: -platform Thread: <NSThread: 0x60000382fc40>{number = 5, name = (null)} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. 2022-02-16 17:04:01.937 xcodebuild[43762:2523261] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-19527/DTDeviceKitBase/DTDKRemoteDeviceData.m:373 Details: (null) deviceType from e10ab23cb7bc5f41e4b24b5a02674fc7de8d3c30 was NULL when -platform called. Object: <DTDKMobileDeviceToken: 0x7fed12025610> Method: -platform Thread: <NSThread: 0x6000038c5180>{number = 13, name = (null)} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. 2022-02-16 17:04:02.034 xcodebuild[43762:2523261] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-19527/DTDeviceKitBase/DTDKRemoteDeviceData.m:373 Details: (null) deviceType from e10ab23cb7bc5f41e4b24b5a02674fc7de8d3c30 was NULL when -platform called. Object: <DTDKMobileDeviceToken: 0x7fed12025610> Method: -platform Thread: <NSThread: 0x6000038c5180>{number = 13, name = (null)} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. *** If you believe this error represents a bug, please attach the result bundle at /Users/shlomigross/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Logs/Test/Test-WebDriverAgentRunner-2022.02.16_17-04-02-+0200.xcresult 2022-02-16 17:04:02.349 xcodebuild[43762:2523254] [MT] IDETestOperationsObserverDebug: 0.200 elapsed – Testing started completed. 2022-02-16 17:04:02.349 xcodebuild[43762:2523254] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec – start 2022-02-16 17:04:02.349 xcodebuild[43762:2523254] [MT] IDETestOperationsObserverDebug: 0.200 sec, +0.200 sec – end Test session results, code coverage, and logs: /Users/shlomigross/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Logs/Test/Test-WebDriverAgentRunner-2022.02.16_17-04-02-+0200.xcresult Testing started Testing failed: WebDriverAgentRunner: WebDriverAgentRunner-Runner encountered an error (Failed to install or launch the test runner. If you believe this error represents a bug, please attach the result bundle at /Users/shlomigross/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Logs/Test/Test-WebDriverAgentRunner-2022.02.16_17-04-02-+0200.xcresult. (Underlying Error: Executable Not Found. /Users/shlomigross/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app is not a valid path to an executable file. Please rebuild the project to ensure that all required executables are created. Check your project settings to ensure that a valid executable will be built.)) ** TEST EXECUTE FAILED **. 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.

What can cause that?
Thanks

Looks like WebDriverAgent is signed in Appium GUI/Inspector, but not in the Node location. The advice given:

Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md

Is well worth heeding. You may need to do the manual signing at:

/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj

Note that this is a different WebDriverAgent than the one the GUI uses, which is inside the .app.

Thank you,
It was actually at the /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj and not at the place that written at the tutorial , strange