Copy link to clipboard
Copied
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
1 Correct answer
Change the Header path
add "${SDKROOT}" to the begin of "/Developer/Header/FlatCarbon"
it should looks like ${SDKROOT}/Developer/Headers/FlatCarbon
Explore related tutorials & articles
Copy link to clipboard
Copied
Change the Header path
add "${SDKROOT}" to the begin of "/Developer/Header/FlatCarbon"
it should looks like ${SDKROOT}/Developer/Headers/FlatCarbon
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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! 🙂
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
My suggestion is don't use XcodeLegacy script:

