Lexical or Preprocessor issue 'Files.h' file not found
Copy link to clipboard
Copied
Hi,
I have run the InDesign CS6 sample plugin in Xcode 6.1 version. I'm getting the lexical or preprocessor issue 'Files.h' file not found.
Please help me to fix this issue.
Thanks,
Vimala L
Copy link to clipboard
Copied
Hi,
you should always use the development environment which is required by the SDK. The InDesign Product CS6 Readme says:
***********************************************************
2. Development Environments
***********************************************************
Windows:
<OS> Microsoft Windows XP with service pack 2 or higher
<IDE> Microsoft Visual Studio 2010 with Service Pack 1
Mac OS:
<OS> Mac OS X 10.6
<IDE> XCode 3.2.5
(Download from http://developer.apple.com/xcode/)
--
Adam
Copy link to clipboard
Copied
Hi,
Thanks for your reply. We are using Mac OS X Mavericks10.9.5 and Xcode 6.1 version. Is it possible to build CS6 plugins?
Thanks,
Vimala L
Copy link to clipboard
Copied
Hi again,
InDesign CS6 was released on April 23rd 2012. You will need the setup Adobe designed the CS6 SDK for to make it work:
OSX 10.6 with XCode 3.6.2.
Adam
Copy link to clipboard
Copied
Actually the readme.txt of my CS6 build 370 SDK (as also quoted above) specifies Xcode 3.2.5 rather than 3.6.2. Installing such an old version of Xcode on a recent machine is no fun: in order to do some debugging just a few days ago I killed a testing machine - after installation it boots straight into kernal panics. I'll retry with a Xcode version matching the OS, but that is just for debugging, not building.
The hard part will be OSX 10.6. For my CS builds I use a 10.7 machine instead that replaced a stolen 10.6, and I never got complaints. 10.7 has the advantage that it is the first version approved by Apple for VMs, therefor recently I've started to also set up a 10.7 virtual machine with Parallels. I still keep some spare 10.6 capable machines though, just in case...
The important thing about the OS version are the toolchain (different compilers, linkers) and OSX SDK version. There are some reports that newer versions of Xcode still could work if you inherit (via machine migration) or install older versions of toolchain and SDK. It is possible to install them even on newer machines, following the principles of this link even though the described versions are slightly different. I have not yet tried the resulting installation as my 10.7 Mac is still pretty up to the task.
If you get everything working, the next exercise will be to set up your projects for multiple InDesign versions. Doable - I build everything from CS5 debug to CC.2015 release with the same project 😉 but it took a while to set up, as the InDesign SDK is no help with that and IMO even takes wrong approaches.
Dirk

