This code no longer works in build 2017.3038 - I don’t know when this started:
local function testScreenGrab() display.newCircle( display.contentCenterX, display.contentCenterY, display.contentCenterX ).fill = {1,0,0} timer.performWithDelay( 5000, function() display.captureScreen( true ):removeSelf() end, 1 ) end testScreenGrab()
TL;DR: It’s impossible to capture an image on macOS with the latest daily build.