[英]calabash-ios not working with iOS 7.1 Simulators
我正在尝试使用Calabash进行一些自动化的UI测试,当我在iOS 8模拟器上运行时,一切正常,但是,当我切换到iOS 7模拟器的那一刻,它似乎无法完全启动该应用程序。
该应用将打开,完成启动屏幕,然后在崩溃后不久,葫芦将再次重试。 这将无限期继续,直到我手动退出为止。
运行之间唯一的变化是我的设备目标,当前我正在使用以下设备目标:
DEVICE_TARGET="iPhone 5 (7.1 Simulator)"
当我在8.4设备上运行时,它看起来如下所示:
DEVICE_TARGET="iPhone 5 (8.4 Simulator)"
任何想法为什么这不起作用? calabash-ios不支持7.1吗?
更多信息:
我会很感激您能提供的任何帮助!
更新此SO答案具有有关如何解决此问题的一些建议。
正式,Calabash iOS在优胜美地上支持iOS> = 7.1模拟器,在Mavericks上支持iOS> = 7.0.3。
您在物理设备上是否有同样的问题?
如果你有:
您必须重新启动Mac才能使CoreSimulator环境保持良好状态。
话虽如此,我正在为运行循环进行集成测试,并且在优胜美地上以Xcode 6.4启动iOS 7.1模拟器时遇到无法解释的错误。 似乎UIAutomation在Yosemite的iOS 7.1模拟器上不可用。
$ DEBUG=1 be run-loop instruments \
launch --app ./CalSmoke-cal.app \
--device "iPhone 5s (7.1 Simulator)"
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00000001032a6286 __pthread_kill + 10
1 libsystem_sim_c.dylib 0x0000000102fd4e59 abort + 101
2 com.apple.ScreenReaderCore 0x00000001047d3114 SCRCUncaughtExceptionHandler + 97
3 com.apple.CoreFoundation 0x0000000100691bf5 __handleUncaughtException + 629
4 libobjc.A.dylib 0x00000001025bebf5 _objc_terminate() + 94
5 libc++abi.dylib 0x0000000102e4de91 std::__terminate(void (*)()) + 8
6 libc++abi.dylib 0x0000000102e4d91d __cxa_throw + 124
7 libobjc.A.dylib 0x00000001025bea9d objc_exception_throw + 298
8 com.apple.CoreFoundation 0x000000010060d2ad +[NSException raise:format:] + 205
9 com.apple.UIAutomation 0x0000000100de96f7 +[UIAXElement initializeAccessibility] + 540
10 com.apple.UIAutomation 0x0000000100dec791 +[UIAXElement uiaxSystemWideElement] + 36
11 com.apple.UIAutomation 0x0000000100dff833 -[UIATarget init] + 300
12 com.apple.UIAutomation 0x0000000100dff6f9 +[UIATarget localTarget] + 53
13 ScriptAgent 0x0000000100008ea8 0x100000000 + 36520
14 ScriptAgent 0x0000000100004b17 0x100000000 + 19223
15 ScriptAgent 0x0000000100006e22 0x100000000 + 28194
16 libdyld.dylib 0x00000001031795c9 start + 1
我已经在运行循环上尝试了几个补丁,但是没有任何效果。
从Console.app也有这个
com.apple.CoreSimulator.CoreSimulatorService[81434]: Failed to open
/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim.dylib:
dlopen(/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim.dylib, 1): no suitable image found.
Did find:
/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim.dylib:
mmap() error 1 at address=0x11837B000, size=0x00002000 segment=__TEXT in Segment::map()
mapping /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim.dylib
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.