gpt4 book ai didi

swift - Xcode 10 GM : XCUIScreen. main.screenshot() 与 `dyld: lazy symbol binding failed` 崩溃

转载 作者:行者123 更新时间:2023-11-28 11:47:38 25 4
gpt4 key购买 nike

当我从 XCTestCase 运行 XCUIScreen.main.screenshot()(在 Xcode 10 GM 中)时,测试崩溃:

dyld: lazy symbol binding failed: can't resolve symbol _XCStringFromRect in /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib/../../Library/Frameworks/XCTest.framework/XCTest because dependent dylib #12 could not be loaded
dyld: can't resolve symbol _XCStringFromRect in /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib/../../Library/Frameworks/XCTest.framework/XCTest because dependent dylib #12 could not be loaded

最佳答案

Release notes说(Xcode 10 中的已知问题 – IDE):

Devices running iOS 12 may fail to take screenshots requested from Xcode’s Devices window.(42873539)

Workaround: Take the screenshot on the device

我认为这一切都是相互关联的,这是一个已知问题,所以有一天它会得到修复。

关于swift - Xcode 10 GM : XCUIScreen. main.screenshot() 与 `dyld: lazy symbol binding failed` 崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52310244/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com