Run my program on my device IOS16.3 via VScode

I am quite new developer , I am trying to run my project on my Iphone rather than simulator for debug and also for development. I had no issues to run the project via Xcode but when I am trying to run the project via VScode to be able to alter the code in src files I get this error

I updated homebrew on my macbook and ran brew install libimobiledevice in VSCode terminal, after that I was successfull of identifying my device UDID, by running idevice_id -l. Of course my device which is iPhone 13Pro was connected to my local drive. However , when I run react-native run-ios --device "name of my phone"

I get this error:

error Command failed: xcrun instruments -s

xcrun: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find instruments 2> /dev/null' failed with exit code 17664: (null) (errno=Invalid argument)

Here are things that I tried to resolve this error but without success :

checked the xcode path, reseted both xcode as well as VScode but nothing seems to work any suggestions ? Thank you for help

Replies

The instruments command line tool was deprecated before and has been removed in Xcode 13 2 years ago. Its replacement is called xctrace. This question might have some more info for you as well: https://developer.apple.com/forums/thread/690887

So it seems the tools you are using need to be updated to work with the new command line tool in Xcode.