Search code examples
iosxcodegenstringsosx-elcapitan

Unable to use command genstrings in OS X El Capitan


I am working on an iOS app using Xcode 6.4 in OS X 10.11 El Capitan (Beta 3).

Whenever I try to localise using the terminal command genstrings I get the message

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

I have been getting this error since the 2nd beta.

Did anyone have to deal with this issue? Thanks in advance!


Solution

  • Hi I am also running into this problem when trying to use Xcode 6.4's genstrings in OS X El Capitan, with Xcode 7 installed.

    For some reason, the genstrings for Xcode 6.4 in /Applications/Xcode.app/Contents/Developer/usr/bin is missing. I tried to re-install Xcode Developer Tools by running xcode-select --install but to no avail.

    The solution I am using is kind of a hack which is making a symlink from the genstrings in Xcode 7 into Xcode 6.4's Developer/usr/bin path as shown in the following command.

    sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/usr/bin/genstrings /Applications/Xcode.app/Contents/Developer/usr/bin