Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set CGBITMAP_CONTEXT_LOG_ERRORS environmental variable?

While using CGBitmapContextCreate I get error in XCode

CGBitmapContextCreate: unsupported parameter combination: set CGBITMAP_CONTEXT_LOG_ERRORS environmental variable to see the details

How can I set this var?

I tried launchctl setenv CGBITMAP_CONTEXT_LOG_ERRORS /Users/user/Documents/cgbitmap_errors.log and launchctl setenv CGBITMAP_CONTEXT_LOG_ERRORS 1 and restarting XCode with no success.

I also tried combination with defaults write com.apple.dt.Xcode UseSanitizedBuildSystemEnvironment -bool NO, no success too

I restarted computer too

like image 260
schmidt9 Avatar asked Sep 14 '16 17:09

schmidt9


1 Answers

Environmental variables can be set in the product scheme editor (in Xcode) like shown in the screenshot:

Product > Scheme > Edit Scheme... (⌘<) Scheme editor screenshot

like image 167
MintSet Avatar answered Oct 24 '22 05:10

MintSet