|
|
há 4 anos atrás | |
|---|---|---|
| .. | ||
| Example | 631d4c8917 Implement TargetIndexMatcher (#9490) | há 4 anos atrás |
| Protos | 40c8bef523 Fix return value of FieldsArray<google_firestore_admin_v1_Index>() (#9526) | há 4 anos atrás |
| Source | c0eb61a6c0 Transaction maxAttempt | há 4 anos atrás |
| Swift | 7cf4247faf Renamed variable to avoid symbol resolution ambiguity with Xcode 12.4 (#9438) | há 4 anos atrás |
| core | af21292b2d fix hard_assert in field_filter.cc (#9529) | há 4 anos atrás |
| fuzzing | e81547f313 Fix fuzzer build failure (#7739) | há 5 anos atrás |
| third_party | a1dde8ee68 Require explicit typing for DocumentSnapshot decoding. DocumentReference decoding. (#9101) | há 4 anos atrás |
| CHANGELOG.md | c61018e62a Include ToString() in Firestore's Query::Comparator() assertion failure message (#9489) | há 4 anos atrás |
| CMakeLists.txt | 2a8d069b77 Run integration tests from CMake on mac (#4276) | há 6 anos atrás |
| LICENSE | f318406ed1 Fix CocoaPods license files for RTDB and Firestore (#9124) | há 4 anos atrás |
| README.md | 01ca6b3151 Add clarifying documentation for command-line builds (#7517) | há 5 anos atrás |
| test.sh | 5930ad2fee Factor out a universal build script (#884) | há 8 anos atrás |
Set up a workspace via CocoaPods (this opens Xcode):
$ cd Firestore/Example
$ pod update
$ open Firestore.xcworkspace
Select the Firestore_Tests_iOS scheme
⌘-u to build and run the unit tests
You can also build from the command-line, though this requires a slightly different setup:
PLATFORM=iOS pod update --project-directory=Firestore/Example
scripts/build.sh Firestore iOS
Note:
PLATFORM here is specifying an environment variable that's active for the
pod update invocation.macOS or tvOS in place of iOS above.The issue that requires
this workaround is that Firestore's Podfile contains multiple platforms, and
ever since Xcode 10.2, CocoaPods generates Xcode projects that are break by
default when built by the xcodebuild command-line tool. There's a workaround
possible that involves disabling Xcode's default mechanism of finding implicit
dependencies, but this is something we'd have to disable Firebase-wide and
there hasn't been an appetite to do this.
Firestore also supports building with Swift Package Manager. To build this way use:
scripts/build.sh Firestore iOS spm
This is rarely necessary for primary development and is done automatically by CI.
You can install a set of type formatters to improve the presentation of
Firestore internals in LLDB and Xcode. Add the following to your ~/.lldbinit file:
command script import ~/path/to/firebase-ios-sdk/scripts/lldb/firestore.py
(substitute the location of your checkout of the firebase-ios-sdk.)
Prefer running the integration tests against the Firestore Emulator. This is much faster than running against production and does not require you to configure a Firestore-enabled project.
scripts/run_firestore_emulator.sh and leave it running.Firestore_IntegrationTests_iOS scheme (or macOS or tvOS).The command-line build script runs integration tests by default and will start and stop an emulator for you.
Occasionally it's useful to run integration tests against a production account.
GoogleServices-Info.plist
file in Firestore/Example/App.If you want to switch back to running integration tests against the emulator:
GoogleServices-Info.plist is in its default state (git
checkout Firestore/Example/App/GoogleServices-Info.plist).Typically you should not need to worrying about regenerating the C++ files from the .proto files. If you do, see instructions at Protos/README.md.