我正在尝试将webdriveragent构建到iOS真实设备上。到昨天为止一切都很好。从那时起,我还没有对盒子进行任何更新。编译时出现以下错误:
\ 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 /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 / 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 -install_name @ rpath / WebDriverAgentLib.framework / WebDriverAgentLib -Xlin ker -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-框架路由HTTPServer 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在XCUIElement + FBIsVisible.o中 XCUIElement + FBUID.o中的l_OBJC _ $ _ CATEGORY_XCElementSnapshot _ $ _ FBUID XCUIElement + FBWebDriverAttributes.o中的l_OBJC _ $ _ CATEGORY_XCElementSnapshot _ $ _ WebDriverAttributes XCUIElement + FBWebDriverAttributes.o中的objc-class-ref XCUIElement + FBUtilities.o中的objc-class-ref XCUIElement + FBAccessibility.o中的l_OBJC _ $ _ CATEGORY_XCElementSnapshot _ $ _ FBAccessibility XCUIElement + FBScrolling.o中的l_OBJC _ $ _ CATEGORY_XCElementSnapshot _ $ _ FBScrolling ... ld:找不到体系结构arm64的符号 铛:错误:链接器命令失败,退出代码为1(使用-v查看调用)
Am使用最新的Xcode和appium 有人可以帮我解决这个问题吗?
答案 0 :(得分:0)
在WebDriverAgentLib目标的其他链接器标记中添加-Wl,-U,“ _ OBJC_CLASS _ $ _ XCElementSnapshot”。