xcodebuild errors during running from under makefiles
xcodebuild errors during running from under makefiles
- Subject: xcodebuild errors during running from under makefiles
- From: Alexander Zvyagin <email@hidden>
- Date: Fri, 17 Dec 2010 14:24:39 +0300
- Acceptlanguage: en-US, ru-RU
- Thread-topic: xcodebuild errors during running from under makefiles
Hello, All!
If xcodebuild utility tell about a strange errors while running from inside makefiles
like following:
---- xcodebuild stdout ----
"Couldn't discover the 'gcc-4.2' compiler's built-in search paths ..."
Compiler: /Developer/Library/Xcode/Plug-ins/GCC 4.2.xcplugin/Contents/Resources/gcc-4.2
Reason: sh: /Developer/Library/Xcode/Plug-ins/GCC 4.2.xcplugin/Contents/Resources/gcc-4.2: No such file or directory
---- cut ----
This mean its needs for the 'gcc' and 'g++' absolete pathnames instead of short file-only names known from make variables "CC" and "CXX".
Do this using xcodebuild feature "setting=value" (described in 'man xcodebuild') like following:
---- xcodebuild makefile ----
CC_FULL_PATHNAME:="CC=/Developer/usr/bin/$(CC)"
CXX_FULL_PATHNAME:="CXX=/Developer/usr/bin/$(CXX)"
WORKAROUND:=$(CC_FULL_PATHNAME) $(CXX_FULL_PATHNAME)
all:
xcodebuild -project ... -sdk ... <over xcodebuild options> $(WORKAROUND)
---- eof ----
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden