如何修复Xcode构建失败的IOS自动化

时间:2019-06-13 08:51:55

标签: ios xcode appium testautomationfx

当对Xcode使用“ Build”时,将显示Build Failed。我使用的是Xcode版本9.4

我已经重新安装了xcode,但这不起作用

"CompileC /Users/dpua/Library/Developer/Xcode/DerivedData/WebDriverAgent-dsupbvdgiqknxbghepgvmbuymtic/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentLib.build/Objects-normal/arm64/XCUIElement+FBClassChain.o WebDriverAgentLib/Categories/XCUIElement+FBClassChain.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/dpua/Desktop/git/WebDriverAgent
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

error: unknown warning option '-Wno-objc-messaging-id'; did you mean '-Wno-objc-cocoa-api'? [-Werror,-Wunknown-warning-option]
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1"

我希望它能够正常工作,因为它以前曾经可以工作,但直到今天它仍然不起作用,并且构建仍因上述错误消息而失败

1 个答案:

答案 0 :(得分:0)

已解决。我只是卸载/安装xcode并从另一台笔记本电脑复制了一个可正常工作的Web驱动程序代理,以便能够再次运行自动化