Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Do I get Xcode 1.5 not supported?

I am trying to install Cairo/Xlib on macOS I couldn't get this to work

cmake -G "Xcode" --config Debug "-DCMAKE_BUILD_TYPE=Debug" ../.

    CMake Error:
  Xcode 1.5 not supported.


CMake Error: Could not create named generator Xcode

Generators
* Unix Makefiles               = Generates standard UNIX makefiles.
  Ninja                        = Generates build.ninja files.
  Ninja Multi-Config           = Generates build-<Config>.ninja files.
  Xcode                        = Generate Xcode project files.
  CodeBlocks - Ninja           = Generates CodeBlocks project files.
  CodeBlocks - Unix Makefiles  = Generates CodeBlocks project files.
  CodeLite - Ninja             = Generates CodeLite project files.
  CodeLite - Unix Makefiles    = Generates CodeLite project files.
  Sublime Text 2 - Ninja       = Generates Sublime Text 2 project files.
  Sublime Text 2 - Unix Makefiles
                               = Generates Sublime Text 2 project files.
  Kate - Ninja                 = Generates Kate project files.
  Kate - Unix Makefiles        = Generates Kate project files.
  Eclipse CDT4 - Ninja         = Generates Eclipse CDT 4.0 project files.
  Eclipse CDT4 - Unix Makefiles= Generates Eclipse CDT 4.0 project files.
like image 279
Necati Yesil Avatar asked May 27 '20 22:05

Necati Yesil


2 Answers

See also this:)

https://wiki.vcmi.eu/How_to_build_VCMI_(macOS)

Installing Xcode
App Store -> Xcode Launch it after the installation to agree with it's license terms.

Alternatively Xcode can be downloaded from Apple Developers website. Registration is easier and every possible version is available: https://developer.apple.com/download/more/

Setting Xcode version Xcode
In case you have some weird CMake errors during generation attempts such as

CMake Error: Xcode 1.5 not supported.
You might need to specify installed version of Xcode:

sudo /usr/bin/xcode-select --switch /Users/admin/Downloads/Xcode.app
After that Cmake will be able to generate projects properly!

or just do

cmake ../
make

like image 60
hochan Avatar answered Sep 27 '22 15:09

hochan


from : https://github.com/mysql-inception/inception/issues/67

sudo /usr/bin/xcode-select --switch /Applications/Xcode_10.1.app

(I have multiple versions of Xcode so that's why it's not just Xcode.app)

like image 20
Beckon Avatar answered Sep 27 '22 17:09

Beckon