Xcode ibtool command searches for nonexistent directory

I am trying to use the ibtool command line ibtool . I opened the terminal in the project directory where .xib I want to process, and I wrote the command as indicated in the Apple documentation:

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

I have not yet localized this .xib file, so it is not located in any localized .lproj directory. When I run such a 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 do not have a volume installed for Xcode. Why is ibtool looking for this directory?

I am using Xcode 4.4.1 and am developing an iOS application. thanks in advance

+4
source share
1 answer

OK, you have to fix xcode-select ( manpage ) to use xcrun :

(from Terminal.app):

 $ xcode-select -switch /Applications/Xcode.app/Contents/Developer 
+12
source

All Articles