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

问题描述 投票:1回答:1

我正在尝试在iOS真实设备上构建webdriveragent。它一直工作到昨天。从那以后我没有对盒子进行任何更新。我在编译时看到以下错误:

\ Ld /Users/qaautomation/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphoneos/WebDriverAgentLib.framework/WebDriverAgentLib normal arm64(in target:WebDriverAgentLib)cd / usr / local / lib / node_modules / appium / node_modules / appium-xcuitest-driver / WebDriverAgent export IPHONEOS_DEPLOYMENT_TARGET = 11.3 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer /Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk -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 / node_modules / appium / node_modules / appium-xcuitest-driver / WebD riverAgent / Carthage / Build / Mac -filelist /Users/qaautomation/Library/Developer/Xcode/DerivedData/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentLib.build/Objects-normal/arm64/WebDriverAgentLib.LinkFileList - install_name @ rpath / WebDriverAgentLib.framework / WebDriverAgentLib -Xlinker -rpath -Xlinker @ executable_path / Frameworks -Xlinker -rpath -Xlinker @ loader_path / Frameworks -miphoneos-version-min = 11.3 -dead_strip -Xlinker -object_path_lto -Xlinker / 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-arc -fobjc- link-runtime -lxml2 -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-iphon eos / 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在XCUIElement + FBIsVisible.o l_OBJC _ $ _ CATEGORY_XCElementSnapshot _ $ _ FBUID在XCUIElement + FBUID.o l_OBJC _ $ _ CATEGORY_XCElementSnapshot _ $ _ WebDriverAttributes在XCUIElement + FBWebDriverAttributes.o objc- XCUIElement中的class-ref + FBWebDriverAttributes.o XCUIElement + FBUtilities.o中的objc-class-ref l_OBJC _ $ _ CATEGORY_XCElementSnapshot _ $ _ XCUIElement中的FBAccessibility + FBAccessibility.o l_OBJC _ $ _ CATEGORY_XCElementSnapshot _ $ _ FBScrolling in XCUIElement + FBScrolling.o ... ld:symbol(s )找不到架构arm64 clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)

我使用最新的Xcode和appium有人可以帮我解决这个问题吗?

ios mobile appium appium-ios
1个回答
0
投票

在WebDriverAgentLib目标中的其他链接器标志中添加-Wl,-U,“_ OBJC_CLASS _ $ _ XCElementSnapshot”。

© www.soinside.com 2019 - 2024. All rights reserved.