Index: ios/testing/earl_grey/matchers.mm |
diff --git a/ios/testing/earl_grey/matchers.mm b/ios/testing/earl_grey/matchers.mm |
index 6138ab3e09c1f9297e869da659f65f56aaf8f3c6..f4fde5b0c5490b8b35c31387bb33a577772a7361 100644 |
--- a/ios/testing/earl_grey/matchers.mm |
+++ b/ios/testing/earl_grey/matchers.mm |
@@ -4,6 +4,10 @@ |
#import "ios/testing/earl_grey/matchers.h" |
+#if !defined(__has_feature) || !__has_feature(objc_arc) |
+#error "This file requires ARC support." |
+#endif |
+ |
namespace testing { |
id<GREYMatcher> contextMenuItemWithText(NSString* text) { |