Question

I am trying to use the ibtool command-line utility. I have opened Terminal in the project directory, where the .xib I want to process is, and I wrote the command as stated in Apple's documentation:

ibtool --generate-strings-file MainMenu.strings MainMenu_iPhone.xib

I have not this .xib file localized yet, so it is not in any localized .lproj directory. When I run such command, I get this output:

xcrun: Error: could not stat active Xcode path '/Volumes/Xcode/Xcode.app/Contents/Developer'. (No such file or directory)

I have no mounted volume for Xcode. Why is ibtool looking for that directory?

I am using XCode 4.4.1 and developing an iOS app. Thanks in advance

Was it helpful?

Solution

OK, you have to correct xcode-select (manpage) in order to use xcrun correctly:

(from Terminal.app):

$ xcode-select -switch /Applications/Xcode.app/Contents/Developer
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top