swift – 当尝试进行涉及webview的UI测试时,Xcode崩溃

swift – 当尝试进行涉及webview的UI测试时,Xcode崩溃,第1张

概述致力于为 swift iOS应用程序构建自动UI测试.该应用程序涉及用于登录Facebook的Web视图.每次在web视图的范围内点击并尝试登录facebook时,如果我尝试使用内置的 Xcode UI记录构建UI测试,则会崩溃Xcode.无论Xcode会崩溃,我使用iPhone 6或模拟器都没关系. 我正在使用Xcode 9.以及FBSDKLoginKit和FBSDKCoreKit. 重现步骤: 致力于为 swift iOS应用程序构建自动UI测试.该应用程序涉及用于登录Facebook的Web视图.每次在web视图的范围内点击并尝试登录facebook时,如果我尝试使用内置的 Xcode UI记录构建UI测试,则会崩溃Xcode.无论Xcode会崩溃,我使用iPhone 6或模拟器都没关系.

我正在使用Xcode 9.以及FBSDKLoginKit和FBSDKCoreKit.

重现步骤:

1)拥有一个带有webvIEw的应用程序

2)点击记录UI测试

3)单击webvIEw范围内的任意位置

这种行为有原因吗?

我是否需要更改Xcode中的设置才能记录Web视图交互?

下面是Xcode崩溃时收到的错误消息.

Process:               Xcode [70544]Path:                  /Applications/Xcode.app/Contents/MacOS/XcodeIDentifIEr:            com.apple.dt.XcodeVersion:               9.3 (14154)Build Info:            IDEFrameworks-14154000000000000~2App Item ID:           497799835App External ID:       826408812Code Type:             X86-64 (Native)Parent Process:        ??? [1]Responsible:           Xcode [70544]User ID:               501Date/Time:             2018-05-21 14:04:50.053 -0400OS Version:            Mac OS X 10.13.4 (17E199)Report Version:        12Anonymous UUID:        335CE1E7-B5AB-F717-E6D0-019AF52B3708Sleep/Wake UUID:       7824F1AB-C514-4609-A447-F15EA9C86C84Time Awake Since Boot: 99000 secondsTime Since Wake:       1800 secondsSystem Integrity Protection: enabledCrashed Thread:        18  dispatch queue: XCUIRecorder_iOS.processingQueueException Type:        EXC_CRASH (SIGABRT)Exception Codes:       0x0000000000000000,0x0000000000000000Exception Note:        EXC_CORPSE_NOTIFYApplication Specific information:ProductBuildVersion: 9E145UNCAUGHT EXCEPTION (NSInternalinconsistencyException): First snapshot has type Other: Other,0x7f9d8c64aaf0,{{0.0,0.0},{0.0,0.0}}UserInfo: (null)Hints: Backtrace:  0   __exceptionPreprocess (in CoreFoundation)  1   DVTFailureHintExceptionPreprocessor (in DVTFoundation)  2   objc_exception_throw (in libobjc.A.dylib)  3   +[NSException raise:format:arguments:] (in CoreFoundation)  4   -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] (in Foundation)  5   +[XCUIRecorderNodeFinder nodetoFindElementForSnapshots:language:platform:] (in XCTest)  6   -[XCUIRecorderUtilitIEs nodetoFindElementForSnapshots:] (in XCTest)  7   __177-[XCUIRecorder_iOS _XCT_recordedEventnames:timestamp:duration:startLocation:startElementSnapshot:startApplicationSnapshot:endLocation:endElementSnapshot:endApplicationSnapshot:]_block_invoke (in XCTest)  8   _dispatch_call_block_and_release (in libdispatch.dylib)  9   _dispatch_clIEnt_callout (in libdispatch.dylib) 10   _dispatch_queue_serial_drain (in libdispatch.dylib) 11   _dispatch_queue_invoke (in libdispatch.dylib) 12   _dispatch_root_queue_drain_deferred_wlh (in libdispatch.dylib) 13   _dispatch_workloop_worker_thread (in libdispatch.dylib) 14   _pthread_wqthread (in libsystem_pthread.dylib) 15   start_wqthread (in libsystem_pthread.dylib)ëØ$ïˇˇabort() calledApplication Specific Signatures:NSInternalinconsistencyException
解决方法 这对我来说似乎是一个Xcode错误.您可以在 Apple Bug Reporter上报告. 总结

以上是内存溢出为你收集整理的swift – 当尝试进行涉及webview的UI测试时,Xcode崩溃全部内容,希望文章能够帮你解决swift – 当尝试进行涉及webview的UI测试时,Xcode崩溃所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://www.outofmemory.cn/web/1044065.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存