# Xcode cannot open renderer

**URL:** https://discourse.vtk.org/t/xcode-cannot-open-renderer/6219
**Category:** Support
**Created:** [July 21, 2021, 4:24pm UTC](https://discourse.vtk.org/t/xcode-cannot-open-renderer/6219 "2021-07-21T16:24:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![fmilicchio](https://discourse.vtk.org/user_avatar/discourse.vtk.org/fmilicchio/32/3685_2.png) [@fmilicchio](https://discourse.vtk.org/u/fmilicchio)
#### Post date: [July 21, 2021, 4:24pm UTC](https://discourse.vtk.org/t/xcode-cannot-open-renderer/6219/1 "2021-07-21T16:24:32Z")

</div>

Hello all,

I am using for the first time VTK (9.0.1 from anaconda) on a macOS machine (11.4), and I seem to be unable to open the renderer window, or better, something happens, I see the icon, but it closes immediately.

The requirement is to use Xcode (12.5.1), not the command line with CMake, so I have read some posts and translated the CMake commands to the Xcode configuration.

I am using the example cylinder code, adding before using any VTK includes the following:

```auto
#include <vtkAutoInit.h>
#include <vtkRenderingOpenGLConfigure.h>

VTK_MODULE_INIT(vtkInteractionStyle)
VTK_MODULE_INIT(vtkRenderingFreeType)
VTK_MODULE_INIT(vtkRenderingOpenGL2)

```

In the “Other Link Flags” I have added the VTK libraries from CMake:

```auto
-lfreetype 
-lGLEW 
-lvtkInteractionStyle-9.0 
-lvtkRenderingContextOpenGL2-9.0 
-lvtkRenderingGL2PSOpenGL2-9.0 
-lvtkRenderingContextOpenGL2-9.0 
-lvtkRenderingOpenGL2-9.0 
-lvtkRenderingContext2D-9.0 
-lvtkRenderingFreeType-9.0 
-lvtkRenderingUI-9.0 
-lvtkRenderingCore-9.0 
-lvtkCommonColor-9.0 
-lvtkFiltersSources-9.0 
-lvtkFiltersCore-9.0 
-lvtkCommonExecutionModel-9.0 
-lvtkCommonDataModel-9.0 
-lvtkCommonTransforms-9.0 
-lvtkCommonMisc-9.0 
-lvtkCommonMath-9.0 
-lvtkCommonCore-9.0 
-lvtksys-9.0

```

I have also tried to add the OpenGL framwork along with IOKit and libz, but it does not help.

What sees to me weird is that I expected at least an error in the output console, but nothing can be seen.

Any hints are really welcome.

Thanks!  
Franco
