Adding retry for iOS screenshot

- #2650
- Added retry for iOS screenshot.