Skip to content

Conversation

wilhuff
Copy link
Contributor

@wilhuff wilhuff commented Oct 16, 2020

Xcode 12 changed the XCTest assertions to be macros that no longer implicitly depended on self. It seems as if Xcode 12.1 has made -Wunused-lambda-capture part of our default warnings and this breaks Objective-C++ code that lambda captures self only for its implicit use with the XCTest macros.

This isn't common, so just suppress the warning by forcing self to appear used regardless of whether XCTest assertions reference self or not.

Xcode 12 changed the XCTest assertions to be macros that no longer
implicitly depended on `self`. It seems as if Xcode 12.1 has made
-Wunused-lambda-capture part of our default warnings and this breaks
Objective-C++ code that lambda captures `self` only for its implicit use
with the XCTest macros.

This isn't common, so just suppress the warning by forcing `self` to
appear used regardless of whether XCTest assertions reference `self` or
not.
@google-oss-bot
Copy link

1 Warning
⚠️ Did you forget to add a changelog entry? (Add #no-changelog to the PR description to silence this warning.)

Generated by 🚫 Danger

@var-const var-const assigned wilhuff and unassigned var-const Oct 16, 2020
@wilhuff wilhuff merged commit db6013c into master Oct 16, 2020
@wilhuff wilhuff deleted the wilhuff/xcode-self branch October 16, 2020 23:27
manjanac added a commit that referenced this pull request Nov 4, 2020
* Restores ML Pods after M77.

* Remove deprecated sendLogsWithServiceName (#6437)

* Remove deprecated pods from Firebase.h and Firebase.podspec (#6438)

* Remove the FCM Direct Channel API from Messaging (#6430)

* Remove unnecessary Core private headers (#6439)

* Update SPM docs to current version (#6524)

* Update podspecs to min iOS 10 (#6517)

* Merging the 6.33.0 release into master (#6523)

* Update versions for Release 6.33.0

* SPM M80(6.33.0) Analytics update (#6490)

Co-authored-by: Paul Beusterien <[email protected]>

* Merge 6.33 SPM fixes back to master (