Skip to content

Commit 16e9c8d

Browse files
Michael Petrovfacebook-github-bot
authored andcommitted
Silence unguarded availability warning from Xcode 8.3
Summary: Silence unguarded availability warning that appeared in Xcode 8.3 when importing `<XCTest/XCTest.h>`. This allows WDA to compile by silencing the following error: ``` While building module 'XCTest' imported from WebDriverAgent/WebDriverAgentLib/Categories/XCUIApplication+FBHelpers.h:10: In file included from <module-includes>:1: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks/XCTest.framework/Headers/XCTest.h:57: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks/XCTest.framework/Headers/XCUIDevice.h:50:22: error: 'XCUISiriService' is partial: introduced in iOS 10.3 [-Werror,-Wunguarded-availability] property (readonly) XCUISiriService *siriService NS_AVAILABLE_IOS(10_3); ^ While building module 'XCTest' imported from WebDriverAgent/WebDriverAgentLib/Categories/XCUIApplication+FBHelpers.h:10: In file included from <module-includes>:1: In fi Closes facebookarchive#525 Differential Revision: D4818640 Pulled By: marekcirkos fbshipit-source-id: 6734852fc20714a67fd7e918f551415344cd6951
1 parent d045140 commit 16e9c8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Configurations/ProjectSettings.xcconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES
2424

2525
GCC_PREPROCESSOR_DEFINITIONS = $(inherited)
2626

27-
WARNING_CFLAGS = $(inherited) -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
27+
WARNING_CFLAGS = $(inherited) -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

0 commit comments

Comments
 (0)