[iOS] can't capture screenshot correctly on Xcode7.1

I noticed that I can’t capture screenshot correctly on Xcode7.1 simulator by “screenshot” method.
When I test UICatalog.app on Xcode6.4 simulator, screenshot is correct as I expected.
But when I test UICatalog.app on Xcode7.1 simulator, screenshot is not correct.
The result is that image lacks half of screen.

So is it an Instruments bug or Appium’s bug?

・Mac OS X Yosemite (10.10.5)
・Xcode7.1 / Xcode6.4
・Appium 1.4.13
・appium_lib 7.0.0

I’m pretty sure this is a problem with Appium. I don’t think the beta Xcode 7.1 is supported. Check here to see if it is:


You’ll probably need to wait until Xcode 7.1 is released. I’m curious why you would want to use the beta Xcode for automation?

Thx to your reply.

Do you mean that Xcode7.1 is still beta version?
I’m sure that Xcode7.1 is public version and released on Oct. 21.

Or do you mean that UIAutomation of Xcode7.1 is not stability?

My company has tried to introduce Appium test for developing flow recently,
and I just want to test our product on iOS9 simulator with Appium.

Ah, you are correct. My bad on the Xcode 7.1.

Still, I don’t see Xcode 7.1 as supported. If I find what the roadmap is for this I’ll post it here.

Have you found a fix/workaround here? I also reproduce this, on 8.4 works fine but on 9.x it’s incomplete, captures top half of the app.

This happens when you scale iOS Simulator. Run your test with 100% scale or try taking screenshot with some other tool.


As dtopuzov said, it seems that Xcode 7x’s iOS simulator works correctly on only 100% scale mode.
Probably is it Apple’s bug? Anyway I’m glad to find a workaround. Thx, dtopuzov!!

you can use those lines to restore default simulator settings (works on Xcode 7.1):
rm -rf ~/Library/Preferences/com.apple.iphonesimulator.plist
defaults write ~/Library/Preferences/com.apple.iphonesimulator SimulatorWindowLastScale “1”