Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode ibtool command looking for non-existing directory

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

like image 377
AppsDev Avatar asked Dec 12 '22 17:12

AppsDev


1 Answers

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
like image 139
trojanfoe Avatar answered Jan 15 '23 08:01

trojanfoe