-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the app compatible with Xcode 14 #19119
Changes from all commits
c7ffd64
07b1cd4
c4a5009
9acbbf6
169da2d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,7 +94,7 @@ public class MySiteScreen: ScreenObject { | |
if XCUIDevice.isPad { | ||
removeButton = app.alerts.buttons.element(boundBy: 1) | ||
} else { | ||
removeButton = app.sheets.buttons.element(boundBy: 0) | ||
removeButton = app.buttons["Remove Site"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Out of scope for this PR, but it would be great if we could have accessibility identifiers for this and the "Remove" used above. cc @wordpress-mobile/mobile-ui-testing-squad |
||
} | ||
|
||
removeButton.tap() | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23036,6 +23036,7 @@ | |
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; | ||
SWIFT_OBJC_BRIDGING_HEADER = "WordPressStatsWidgets/Supporting Files/WordPressStatsWidgets-Bridging-Header.h"; | ||
SWIFT_OPTIMIZATION_LEVEL = "-Onone"; | ||
SWIFT_TREAT_WARNINGS_AS_ERRORS = NO; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sad it had to come to this in c7ffd64. Hopefully we can remember to check this when a new beta comes. Actually... What do you think about tracking known workaround like this one in a checklist somewhere, so that we can run it when a new beta is release? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds like a good idea. Any suggestions where to track this kind of issue? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would be helpful to know what made us unable to turn that back on. Like, for the case where Swift Bridging Header generated by Xcode contained warnings (due to some CoreData methods, iirm), we ended up finding a solution by trampolining to a header that added push/pop diagnostics pragma around it, and that worked great. So maybe for whatever case we had there that once again prevented us from turning it on there's also a way? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I had looked for some Swift compiler flags to suppress this particular warning, but I couldn't find any. I don't think Swift compiler support diagnosis pragma directive in clang (or has anything similar to it). But I just noticed the warnings has gone away in Xcode 14. I've opened #19310 to revert this change. |
||
SWIFT_VERSION = 5.0; | ||
TARGETED_DEVICE_FAMILY = "1,2"; | ||
WPCOM_SCHEME = wpdebug; | ||
|
@@ -23088,6 +23089,7 @@ | |
PROVISIONING_PROFILE_SPECIFIER = "match AppStore org.wordpress.WordPressStatsWidgets"; | ||
SKIP_INSTALL = YES; | ||
SWIFT_OBJC_BRIDGING_HEADER = "WordPressStatsWidgets/Supporting Files/WordPressStatsWidgets-Bridging-Header.h"; | ||
SWIFT_TREAT_WARNINGS_AS_ERRORS = NO; | ||
SWIFT_VERSION = 5.0; | ||
TARGETED_DEVICE_FAMILY = "1,2"; | ||
WPCOM_SCHEME = wordpress; | ||
|
@@ -23141,6 +23143,7 @@ | |
PROVISIONING_PROFILE_SPECIFIER = "match InHouse org.wordpress.internal.WordPressStatsWidgets"; | ||
SKIP_INSTALL = YES; | ||
SWIFT_OBJC_BRIDGING_HEADER = "WordPressStatsWidgets/Supporting Files/WordPressStatsWidgets-Bridging-Header.h"; | ||
SWIFT_TREAT_WARNINGS_AS_ERRORS = NO; | ||
SWIFT_VERSION = 5.0; | ||
TARGETED_DEVICE_FAMILY = "1,2"; | ||
WPCOM_SCHEME = wpinternal; | ||
|
@@ -23194,6 +23197,7 @@ | |
PROVISIONING_PROFILE_SPECIFIER = "match InHouse org.wordpress.alpha.WordPressStatsWidgets"; | ||
SKIP_INSTALL = YES; | ||
SWIFT_OBJC_BRIDGING_HEADER = "WordPressStatsWidgets/Supporting Files/WordPressStatsWidgets-Bridging-Header.h"; | ||
SWIFT_TREAT_WARNINGS_AS_ERRORS = NO; | ||
SWIFT_VERSION = 5.0; | ||
TARGETED_DEVICE_FAMILY = "1,2"; | ||
WPCOM_SCHEME = wpalpha; | ||
|
@@ -25711,6 +25715,7 @@ | |
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; | ||
SWIFT_OBJC_BRIDGING_HEADER = "WordPressIntents/Supporting Files/WordPressIntents-Bridging-Header.h"; | ||
SWIFT_OPTIMIZATION_LEVEL = "-Onone"; | ||
SWIFT_TREAT_WARNINGS_AS_ERRORS = NO; | ||
SWIFT_VERSION = 5.0; | ||
TARGETED_DEVICE_FAMILY = "1,2"; | ||
WPCOM_SCHEME = wpdebug; | ||
|
@@ -25761,6 +25766,7 @@ | |
PROVISIONING_PROFILE_SPECIFIER = "match AppStore org.wordpress.WordPressIntents"; | ||
SKIP_INSTALL = YES; | ||
SWIFT_OBJC_BRIDGING_HEADER = "WordPressIntents/Supporting Files/WordPressIntents-Bridging-Header.h"; | ||
SWIFT_TREAT_WARNINGS_AS_ERRORS = NO; | ||
SWIFT_VERSION = 5.0; | ||
TARGETED_DEVICE_FAMILY = "1,2"; | ||
WPCOM_SCHEME = wordpress; | ||
|
@@ -25812,6 +25818,7 @@ | |
PROVISIONING_PROFILE_SPECIFIER = "match InHouse org.wordpress.internal.WordPressIntents"; | ||
SKIP_INSTALL = YES; | ||
SWIFT_OBJC_BRIDGING_HEADER = "WordPressIntents/Supporting Files/WordPressIntents-Bridging-Header.h"; | ||
SWIFT_TREAT_WARNINGS_AS_ERRORS = NO; | ||
SWIFT_VERSION = 5.0; | ||
TARGETED_DEVICE_FAMILY = "1,2"; | ||
WPCOM_SCHEME = wpinternal; | ||
|
@@ -25863,6 +25870,7 @@ | |
PROVISIONING_PROFILE_SPECIFIER = "match InHouse org.wordpress.alpha.WordPressIntents"; | ||
SKIP_INSTALL = YES; | ||
SWIFT_OBJC_BRIDGING_HEADER = "WordPressIntents/Supporting Files/WordPressIntents-Bridging-Header.h"; | ||
SWIFT_TREAT_WARNINGS_AS_ERRORS = NO; | ||
SWIFT_VERSION = 5.0; | ||
TARGETED_DEVICE_FAMILY = "1,2"; | ||
WPCOM_SCHEME = wpalpha; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's concerning that Danger didn't remove this comment after the
rubocop:disable
annotation was added.