Search code examples
delphidelphi-xe5

Error Invalid PLATFORM variable "MCD"


I've just installed Delphi XE5 since I wanna try to develop with android.

But I cannot compile anything because I always get an error message. This is the error I get while I compile:

[Error Error] Invalid PLATFORM variable "MCD". PLATFORM must be one of the following: "Win32", "Win64", "Android", "iOSSimulator", "iOSDevice", or "OSX32". If PLATFORM is defined by your system's environment, it must be overridden in the RAD Studio IDE or passed explicitly on the command line to MSBuild; e.g., /p:Platform=Win32.


Solution

  • It seems to me your error message is pretty clear.
    Select Tools --> Options --> Environment Variables and override the PLATFORM variable.

    Have you tried this?