Utils::captureScreen not working on iOS 7?

Hi all,

After using utils::captureScreen on iOS 7, my game crashes when I try to retrieve the screenshot in my afterScreenshotCapture is complete method.

It works fine on iOS 8 and iOS 9, but iOS 7 crashes with the following error:

“libc++abi.dylib: terminating with uncaught exception of type NSException”

I’ve tried with with “Screenshot.png” and cocos2d::FileUtils::getInstance()->getWritablePath() + filename, but neither have worked.

The only way I can re-create the error on iOS 8 and 9 is to purposely putting the wrong name in my filename string.

So despite “isComplete” equaling true, it appears that my screenshot isn’t being saved?

Any ideas?

Thanks! :smile:

P.S. I’m using Cocos2D-X 3.8.1