Skip to content
This repository has been archived by the owner on Dec 26, 2019. It is now read-only.

WebDriverAgent build failed #1124

Open
cindysongzi opened this issue Jun 13, 2019 · 1 comment
Open

WebDriverAgent build failed #1124

cindysongzi opened this issue Jun 13, 2019 · 1 comment

Comments

@cindysongzi
Copy link

Info
System: Mac OS Sierra v10.12.6
Xcode: 9.2
Real Device: iPad mini v11.2

I downloaded facebookarchive/WebDriverAgent from github, run ./Scripts/bootstrap.sh to download packages successfully.
Open WebDriverAgent in XCode, rename bundleID, input developerID, select real device by clicking Product->Destination, select Product -> Scheme -> WebDriverAgentRunner, and then build failed.

The following is the error message:
ProcessPCH /Users/E1-QA/Library/Developer/Xcode/DerivedData/WebDriverAgent-ckohhjadnefdtpgbqwakxxsmrsrd/Build/Intermediates.noindex/PrecompiledHeaders/PrefixHeader-ejhbcetizdjorzhehhzjukcpqjvr/PrefixHeader.pch.pch PrefixHeader.pch normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/E1-QA/Downloads/WebDriverAgent-master
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"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c-header -arch arm64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=/Users/E1-QA/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/E1-QA/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wno-trigraphs -fpascal-strings -O0 -fno-common -Werror -Wmissing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Warc-repeated-use-of-weak -Wno-arc-maybe-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wunused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -pedantic -Wshadow -Wno-four-char-constants -Wconversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wfloat-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wassign-enum -Wsign-compare -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=9.3 -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -index-store-path /Users/E1-QA/Library/Developer/Xcode/DerivedData/WebDriverAgent-ckohhjadnefdtpgbqwakxxsmrsrd/Index/DataStore -iquote /Users/E1-QA/Library/Developer/Xcode/DerivedData/WebDriverAgent-ckohhjadnefdtpgbqwakxxsmrsrd/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentLib.build/WebDriverAgentLib-generated-files.hmap -I/Users/E1-QA/Library/Developer/Xcode/DerivedData/WebDriverAgent-ckohhjadnefdtpgbqwakxxsmrsrd/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentLib.build/WebDriverAgentLib-own-target-headers.hmap -I/Users/E1-QA/Library/Developer/Xcode/DerivedData/WebDriverAgent-ckohhjadnefdtpgbqwakxxsmrsrd/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentLib.build/WebDriverAgentLib-all-target-headers.hmap -iquote /Users/E1-QA/Library/Developer/Xcode/DerivedData/WebDriverAgent-ckohhjadnefdtpgbqwakxxsmrsrd/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentLib.build/WebDriverAgentLib-project-headers.hmap -I/Users/E1-QA/Library/Developer/Xcode/DerivedData/WebDriverAgent-ckohhjadnefdtpgbqwakxxsmrsrd/Build/Products/Debug-iphoneos/include -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk/usr/include/libxml2 -I/Users/E1-QA/Downloads/WebDriverAgent-master/Modules -I/Users/E1-QA/Library/Developer/Xcode/DerivedData/WebDriverAgent-ckohhjadnefdtpgbqwakxxsmrsrd/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentLib.build/DerivedSources/arm64 -I/Users/E1-QA/Library/Developer/Xcode/DerivedData/WebDriverAgent-ckohhjadnefdtpgbqwakxxsmrsrd/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentLib.build/DerivedSources -Weverything -Wno-objc-missing-property-synthesis -Wno-unused-macros -Wno-disabled-macro-expansion -Wno-gnu-statement-expression -Wno-language-extension-token -Wno-overriding-method-mismatch -Wno-missing-variable-declarations -Rno-module-build -Wno-auto-import -Wno-objc-interface-ivars -Wno-documentation-unknown-command -Wno-reserved-id-macro -Wno-unused-parameter -Wno-gnu-conditional-omitted-operand -Wno-explicit-ownership-type -Wno-date-time -Wno-cast-align -Wno-cstring-format-directive -Wno-double-promotion -Wno-partial-availability -Wno-objc-messaging-id -F/Users/E1-QA/Library/Developer/Xcode/DerivedData/WebDriverAgent-ckohhjadnefdtpgbqwakxxsmrsrd/Build/Products/Debug-iphoneos -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks -F/Users/E1-QA/Downloads/WebDriverAgent-master/Carthage/Build/iOS -F/Users/E1-QA/Downloads/WebDriverAgent-master/Carthage/Build/Mac -MD -MT dependencies -MF /Users/E1-QA/Library/Developer/Xcode/DerivedData/WebDriverAgent-ckohhjadnefdtpgbqwakxxsmrsrd/Build/Intermediates.noindex/PrecompiledHeaders/PrefixHeader-ejhbcetizdjorzhehhzjukcpqjvr/PrefixHeader.pch.d -c /Users/E1-QA/Downloads/WebDriverAgent-master/PrefixHeader.pch -o /Users/E1-QA/Library/Developer/Xcode/DerivedData/WebDriverAgent-ckohhjadnefdtpgbqwakxxsmrsrd/Build/Intermediates.noindex/PrecompiledHeaders/PrefixHeader-ejhbcetizdjorzhehhzjukcpqjvr/PrefixHeader.pch.pch --serialize-diagnostics /Users/E1-QA/Library/Developer/Xcode/DerivedData/WebDriverAgent-ckohhjadnefdtpgbqwakxxsmrsrd/Build/Intermediates.noindex/PrecompiledHeaders/PrefixHeader-ejhbcetizdjorzhehhzjukcpqjvr/PrefixHeader.pch.dia

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

Can anybody help? Thanks.

@13409795771
Copy link

在 WebDriverAgentRunner 和 WebDriverAgentLib 这两个 Build Settings -> Other Warning Flags 分别增加 -Wno-unknown-warning-option , 应该就好了

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants