0
votes

I recently upgraded to xcode13, before which react native app was working fine for long time. However, after switching when I run in iOS, I am getting error "instruments is not a developer tool or in PATH" on command "xcrun instruments". I tried following commands (all with Xcode in quit status)

sudo xcode-select -r
 

it reset the xcode select path to

 /Applications/Xcode.app/Contents/Developer

then I quit command line reopened and tried
xcrun instruments got same error again, so tried switching

 sudo xcode-select -s /Library/Developer/CommandLineTools

quit command line and tried again, still no success. each time i verified path change using command

  sudo xcode-select -p

I opened instruments app using cmd+space and could see version as 13, same as Xcode. That means matching instruments app(tool) exists but somehow xcrun is unable to find it which results in build failure.

FYI my react native version is 0.64.0. I saw couple of solutions like comment out flipper (which was not in my pod file though!) and add swift to library path in project.pbxproj, both solutions could not be applied.

Any suggestions would help.