Skip to main content
Rick E Johnson
Inspiring
April 22, 2015
Answered

Anyone using XcodeLegacy script?

  • April 22, 2015
  • 2 replies
  • 1130 views

Is anybody using this XcodeLegacy script to compile projects from older versions of Xcode?

devernay/xcodelegacy · GitHub

I'm trying to compile the sample plugins from the Illustrator CS6 SDK using Xcode 5.1.1 with a late 2012 iMac running Yosemite 10.10.3, and have run into a wall because Carbon.h is no longer present. I installed the XcodeLegacy script in Xcode 4 a couple of years ago to recompile a CS3 plugin with very minor changes, and it failed miserably, so am reluctant to try it again if there's a simpler solution.

Anyone care to share your thoughts on this? Many thanks in advance...

Rick

This topic has been closed for replies.
Correct answer losetemper

Change the Header path

add "${SDKROOT}" to the begin of "/Developer/Header/FlatCarbon"

it should looks like ${SDKROOT}/Developer/Headers/FlatCarbon

2 replies

Rick E Johnson
Inspiring
December 2, 2015

Call me reckless for upgrading to El Capitan, OS X 10.11, but I'm struggling again with Xcode 7 for CS6 plugins. For some reason, when I run the XcodeLegacy script, it seems to fail to install the GCC 4.0 and 4.2 compilers. The Xcode package contains Xcode.app/Contents/Developer/usr/bin/gcc-4.0 and 4.2, both aliases to nonexistent destinations. Any suggestions?

TIA -- Rick

Inspiring
December 2, 2015

My suggestion is don't use XcodeLegacy script:

Can Xcode 7 be used for CS6 plugins?

losetemperCorrect answer
Inspiring
May 4, 2015

Change the Header path

add "${SDKROOT}" to the begin of "/Developer/Header/FlatCarbon"

it should looks like ${SDKROOT}/Developer/Headers/FlatCarbon

Rick E Johnson
Inspiring
May 6, 2015

Thanks! That solved the Carbon.h error, but now in  I'm getting:

Semantic Issue

Redefinition of 'NSView" as different kind of symbol

In the files AIPanel.h the error occurs at:

  class NSView;

  typedef NSView* AIPanelPlatformWindow;

... and in and AIControlBar.h at:

   class NSView;

   typedef NSView* AIControlBarPlatformWindow;

That's in the unmodified EmptyPanel sample project. I'm running Xcode 5.1.1 under Yosemite with the latest XcodeLegacy script re-installed.

TIA

Rick E Johnson
Inspiring
May 7, 2015

Thanks losetemper, for giving me the encouragement to keep digging. The link to the CS6 SDK on Adobe's site is broken (404 page), but I found another CS6 SDK in a backup and tried the EmptyPanel sample again. I got a lot of warnings, but it compiled just fine. Great to know it works with Xcode 6, too! :-)