0

I have 2 laptops and run the same script on both of them:

find ./ -name '*.swift' -print0 | xargs -0 xcrun extractLocStrings -o ./en.lproj

The "first" where script is not working

  • macOS version: 12.3.1 (21E258)
  • XCode Version 13.4.1 (13F100)

And receive error:

xcrun: error: unable to find utility "extractLocStrings", not a developer tool or in PATH

The "second" where script works as expected

  • macOS version: 12.2 (21D49)
  • XCode Version 13.1 (13A1030d)

Is there any way to make extractLocStrings work with the new XCode xcrun? maybe any alternative utils? or maybe it's not related to XCode version?

Here is a breaf explanation what the script is actually doing.

Thank you so much for your attention and participation =)

Nuzhdin Vladimir
  • 1,714
  • 18
  • 36
  • 1
    Maybe try to reinstall the Xcode command line tools? Or run `genstrings` instead? (because `genstrings == xcrun extractLocStrings`) – Yonat Jul 02 '22 at 17:47

1 Answers1

0

executing in terminal:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

solved my problem. details

Nuzhdin Vladimir
  • 1,714
  • 18
  • 36