Skip to content

Commit

Permalink
Update Firestore macOS build for Xcode 12 (#6859)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulb777 authored and schmidt-sebastian committed Oct 29, 2020
1 parent dce55c4 commit d06b22a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/firestore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ jobs:
# Don't run on private repo unless it is a PR.
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
runs-on: macOS-latest
needs: check
steps:
- uses: actions/checkout@v2
- name: Xcode 12
Expand Down
3 changes: 2 additions & 1 deletion Firestore/core/test/unit/FSTGoogleTestTests.mm
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ void XCTestMethod(XCTestCase* self, SEL _cmd) {
const char* path = part.file_name() ? part.file_name() : "";
int line = part.line_number() > 0 ? part.line_number() : 0;

#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 140000
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 140000 || \
__MAC_OS_X_VERSION_MAX_ALLOWED >= 101500
// Xcode 12
auto* location = [[XCTSourceCodeLocation alloc] initWithFilePath:@(path)
lineNumber:line];
Expand Down

0 comments on commit d06b22a

Please sign in to comment.