title: How to set CGBITMAP_CONTEXT_LOG_ERRORS environmental variable?
body: <p>While using <code>CGBitmapContextCreate</code> I get error in XCode</p>
  
  <blockquote>
    <p>CGBitmapContextCreate: unsupported parameter combination: set
    CGBITMAP_CONTEXT_LOG_ERRORS environmental variable to see the details</p>
  </blockquote>
  
  <p>How can I set this var? </p>
  
  <p>I tried
  <code>launchctl setenv CGBITMAP_CONTEXT_LOG_ERRORS /Users/user/Documents/cgbitmap_errors.log</code> and <code>launchctl setenv CGBITMAP_CONTEXT_LOG_ERRORS 1</code> and restarting XCode with no success. </p>
  
  <p>I also tried combination with <code>defaults write com.apple.dt.Xcode UseSanitizedBuildSystemEnvironment -bool NO</code>, no success too</p>
  
  <p>I restarted computer too</p>