Launching photo screen a second time on iOS8 when Calabash iOS is linked

旧时模样 提交于 2019-12-23 04:05:15

问题


Problem with launching photo screen a second time on iOS8 when Calabash-ios is linked.

When the user takes a photo in our app, she can save it, but can decide to go back and give it another go at a later time. When the app is built for iOS 8, we see the following behaviour:

Taking the first photo works OK, retaking it without leaving the photo screen works fine, as well.

But when a photo is saved and the photo screen is launched a second time, the photo preview area - the viewfinder - on the screen is just black and unable to take a photo. When I switch between the two cameras on the phone, the previously saved photograph is flipped as a transition animation. Exiting the photo screen and launching it again gives the same. This happens even when launching the app manually. It's only happening on iOS 8, tested with iOS 7 and it works fine.

$ xcode-select --print-path
/Applications/Xcode.app/Contents/Developer

$ xcodebuild -version
Xcode 6.0.1
Build version 6A317

$ calabash-ios version
0.10.1

$ calabash.framework/Resources/version
0.10.1

I have a sample app to reproduce the issue that only takes photos. It works as expected when built without Calabash, but has the same issue when Calabash is linked.

XCode logs show the Calabash server is launched:

cameratest-cal[629:270640] Creating the server: <LPHTTPServer: 0x17d6b7f0>
cameratest-cal[629:270640] Calabash iOS server version: CALABASH VERSION: 0.10.1
cameratest-cal[629:270640] simroot: (null)
cameratest-cal[629:270640] Started LPHTTP server on port 37265
cameratest-cal[629:270713] Bonjour Service Published: domain(local.) type(_http._tcp.) name(Calabash Server)
cameratest-cal[629:270640] Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates.
cameratest-cal[629:270640] Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates.

Any idea what might cause this behaviour?

来源:https://stackoverflow.com/questions/26014651/launching-photo-screen-a-second-time-on-ios8-when-calabash-ios-is-linked

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!