首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >WebdriverAgent:链接器命令失败,退出代码1(使用-v查看调用)

WebdriverAgent:链接器命令失败,退出代码1(使用-v查看调用)
EN

Stack Overflow用户
提问于 2018-09-25 18:36:25
回答 1查看 719关注 0票数 2

我正试图在iOS真正的设备上构建webdriveragent。昨天以前一直很好。从那以后我就没有对这个盒子做过任何更新。在编译时,我看到以下错误:

Ld /Users/qaautomation/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphoneos/WebDriverAgentLib.framework/WebDriverAgentLib normal arm64 (靶标: WebDriverAgentLib) cd /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent导出IPHONEOS_DEPLOYMENT_TARGET=11.3 -arch arm64 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/ -L/Users/qaautomation/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphoneos -F/Users/qaautomation/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphoneos -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks -F/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Carthage/Build/iOS -F/usr/local/lib/节点_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Carthage/Build/Mac -filelist /Users/qaautomation/Library/Developer/Xcode/DerivedData/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentLib.build/Objects-normal/arm64/WebDriverAgentLib.LinkFileList @rpath/WebDriverAgentLib.framework/WebDriverAgentLib -Xlinker -rpath -Xlinker @可执行路径/框架-Xlinker -rpath -Xlinker @加载程序路径/框架-miphoneos-version-min=11.3 -dead_strip -Xlinker -object_path_lto/Users/qaautomation/Library/Developer/Xcode/DerivedData/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentLib.build/Objects-normal/arm64/WebDriverAgentLib_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fobjc- -Xlinker - -framework RoutingHTTPServer -framework YYCache -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/qaautomation/Library/Developer/Xcode/DerivedData/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentLib.build/Objects-normal/arm64/WebDriverAgentLib_dependency_info.dat -o /Users/qaautomation/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphoneos/WebDriverAgentLib.framework/WebDriverAgentLib

架构arm64的未定义符号:"_OBJC_CLASS_$_XCElementSnapshot",参考来源: l_OBJC_$_CATEGORY_XCElementSnapshot_$_FBIsVisible in XCUIElement+FBIsVisible.o l_OBJC_$_CATEGORY_XCElementSnapshot_$_FBUID in XCUIElement+FBUID.o in XCUIElement+FBWebDriverAttributes.o objc class-ref in XCUIElement+FBWebDriverAttributes.o objc class-ref in XCUIElement+FBUtilities.o l_OBJC_$_CATEGORY_XCElementSnapshot_$_FBAccessibility in XCUIElement+FBAccessibility.o l_OBJC_$_CATEGORY_XCElementSnapshot_$_FBScrolling in XCUIElement+FBScrolling.o . ld:符号(S)在体系结构中找不到arm64 clang: arm64: linker命令失败,退出代码1(使用-v查看调用)

我正在使用最新的Xcode和appium,有人能帮我解决这个问题吗?

EN

回答 1

Stack Overflow用户

发布于 2019-04-16 08:46:23

将-Wl、-U、"_OBJC_CLASS_$_XCElementSnapshot“添加到WebDriverAgentLib目标的其他链接器标志中。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52504743

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档