我试着用Calabash进行一些自动UI测试,当我在iOS 8模拟器上运行时,一切都很好,但是,当我切换到iOS 7模拟器时,它似乎无法完全启动应用程序。
该应用程序将打开,完成启动屏幕,然后不久后,它将崩溃,葫芦将再次尝试。这将无限期地持续下去,直到我手动退出。
在运行之间唯一的变化是我的设备目标,目前我正在对设备目标使用以下内容:
DEVICE_TARGET="iPhone 5 (7.1 Simulator)"当我在8.4设备上运行时,它看起来如下所示:
DEVICE_TARGET="iPhone 5 (8.4 Simulator)"知道为什么这不管用吗?在calabash上不支持7.1吗?
更多信息:
我很感激你能提供的任何帮助!
发布于 2015-09-01 06:14:10
UPDATE这个SO answer有一些关于如何解决这个问题的建议。
卡拉巴斯iOS正式支持优胜美地的iOS >= 7.1模拟器和小牛的iOS >= 7.0.3。
你在物理设备上也有同样的问题吗?
如果你有:
您必须重新启动Mac,以使CoreSimulator环境处于良好状态。
尽管如此,我正在为运行循环进行集成测试,并且在Yosemite上看到在Xcode 6.4中启动iOS 7.1模拟器的原因不明的错误。看起来UIAutomation在约塞米蒂的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.dylibhttps://stackoverflow.com/questions/32313999
复制相似问题