• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
xcodebuild errors during running from under makefiles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Use of mutableArrayValueForKey
  • Next by Date: preventing a window to restore from dock on clicking
  • Previous by thread: List Help
  • Next by thread: preventing a window to restore from dock on clicking
  • Index(es):
    • Date
    • Thread