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?
[Condition]
・Mac OS X Yosemite (10.10.5)
・Xcode7.1 / Xcode6.4
・Appium 1.4.13
・appium_lib 7.0.0
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”