Skip to content

Set the FIRESTORE_INCLUDE_OBJC cmake cache var to NO #901

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

Merged
merged 2 commits into from
Apr 16, 2022

Conversation

dconeybe
Copy link
Contributor

This won't have any effects until the iOS dependencies are updated to a version that includes firebase/firebase-ios-sdk#9658.

Setting the cmake cache variable FIRESTORE_INCLUDE_OBJC to NO will work around the unknown attribute 'swift_async' build error introduced by firebase/firebase-ios-sdk#9502, and that will be picked up the next time that the iOS dependencies in this repository are upgraded. This fixes the build error because the file with the problematic code is no longer included in the build.

See firebase/firebase-ios-sdk#9658 for more details.

…g Objective-C parts of the iOS SDK.

This won't have any effects until the iOS dependencies are updated to a version that includes firebase/firebase-ios-sdk#9658.

This will fix the following build error:

```
FIRFirestore.h:147:20: error: unknown attribute 'swift_async' ignored [-Werror,-Wunknown-attributes]
    __attribute__((swift_async(none)));  // Disable async import due to #9426.
                   ^
1 error generated.
```

which was introduced by firebase/firebase-ios-sdk#9502.

It avoids it by simply not building the file at all :)
@dconeybe dconeybe added the tests-requested: quick Trigger a quick set of integration tests. label Apr 16, 2022
@github-actions github-actions bot added the tests: in-progress This PR's integration tests are in progress. label Apr 16, 2022
@github-actions
Copy link

github-actions bot commented Apr 16, 2022

❌  Integration test FAILED

Requested by @dconeybe on commit 665b2d5
Last updated: Fri Apr 15 22:26 PDT 2022
View integration test log & download artifacts

Failures Configs
firestore [TEST] [ERROR] [Linux] [openssl]

Add flaky tests to go/fpl-cpp-flake-tracker

@github-actions github-actions bot removed the tests-requested: quick Trigger a quick set of integration tests. label Apr 16, 2022
@github-actions github-actions bot added the tests: succeeded This PR's integration tests succeeded. label Apr 16, 2022
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Apr 16, 2022
@dconeybe dconeybe merged commit 665b2d5 into main Apr 16, 2022
@dconeybe dconeybe deleted the dconeybe/FirestoreNoBuildObjc branch April 16, 2022 03:07
@github-actions github-actions bot added tests: in-progress This PR's integration tests are in progress. tests: failed This PR's integration tests failed. and removed tests: succeeded This PR's integration tests succeeded. labels Apr 16, 2022
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Apr 16, 2022
@firebase firebase locked and limited conversation to collaborators May 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: firestore skip-release-notes Skip release notes check tests: failed This PR's integration tests failed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants