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

Ios WebdriverAgent:链接器命令失败,退出代码为1(使用-v查看调用),ios,mobile,appium,appium-ios,Ios,Mobile,Appium,Appium Ios,我正在尝试将webdriveragent构建到iOS real设备上。直到昨天,天气一直很好。从那以后,我再也没有更新过这个盒子。我在编译时看到以下错误: \Ld/Users/qaautomation/Library/Developer/Xcode/DerivedData/Build/Products/Debug iphoneos/WebDriverAgentLib.framework/WebDriverAgentLib普通arm64(目标:WebDriverAgentLib) cd/usr/l

我正在尝试将webdriveragent构建到iOS real设备上。直到昨天,天气一直很好。从那以后,我再也没有更新过这个盒子。我在编译时看到以下错误:

\Ld/Users/qaautomation/Library/Developer/Xcode/DerivedData/Build/Products/Debug iphoneos/WebDriverAgentLib.framework/WebDriverAgentLib普通arm64(目标:WebDriverAgentLib) cd/usr/local/lib/node_modules/appium/node_modules/appium xguitest driver/webdrivergent 导出IPHONEOS_部署_目标=11.3 /Applications/Xcode.app/Contents/Developer/toolschains/XcodeDefault.xctoolschain/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 xuitest driver/webdrivergent/Carthage/Build/iOS-F/usr/local/lib/node_modules/appium/node_modules/appium xguitest driver/webdrivergent/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\u name@rpath/WebDriverAgentLib.framework/WebDriverAgentLib-Xlinker-rpath-Xlinker@executable\u path/Frameworks-Xlinker-rpath-Xlinker@loader\u path/Frameworks-miphoneos version min=11.3-dead\u strip-Xlinker-object\u path\u lto-Xlinker/Users/qaautomation/Library/Developer/Xcode/DerivedData/Build/Intermediates.noindex/webdrivergent.Build/Debug iphoneos/WebDriverAgentLib.Build/Objects normal/arm64/WebDriverAgentLib\u lto.o-Xlinker-export\u dynamic-Xlinker-no_重复数据消除-fobjc arc-fobjc-link运行时-lxml2-framework RoutingHTTPServer-framework-YYCache-compatibility\u版本1-当前版本1-Xlinker-dependency\u info-Xlinker/Users/qaautomation/Library/Developer/Xcode/DerivedData/Build/mediates.noindex/WebDriverAgent.Build/Debug-iphoneos/WebDriverAgentLib.Build/Objects-normal/arm64/WebDriverAgentLib\u dependency\u info.dat-o/用户/qaautomation/Library/Developer/Xcode/DerivedData/Build/Products/Debug iphoneos/WebDriverAgentLib.framework/WebDriverAgentLib

架构arm64的未定义符号: “_OBJC_CLASS_$_xElementSnapshot”,引用自: l_OBJC_$_CATEGORY_xcelement snapshot_$_FBIsVisible在xuiElement+FBIsVisible.o中可见 l_OBJC_$_类别xElementSnapshot_$fUID在xUIElement+fUID.o中 l_OBJC_$_类别_xcelement快照$_xcielement+fbWebDrivertAttribute.o中的WebDrivertAttribute XUIElement+FBWebDriverAttributes.o中的objc类引用 XUIElement+FBUtilities.o中的objc类引用 l_OBJC_$_类别_xcelement快照_$_FBAccessibility在xuielement+FBAccessibility.o中 l_OBJC_$_类别_xcelement快照$_fB在xuielement+FBScrolling.o中滚动 ... ld:未找到架构arm64的符号 叮当声:错误:链接器命令失败,退出代码为1(使用-v查看调用)

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

在WebDriverAgentLib目标中的其他链接器标志中添加-Wl,-U,“\U OBJC\U CLASS\U$\ U xElementSnapshot”