- In the
../Samples/Swift/DaysUntilBirthday/
folder, run the following CocoaPods command.
pod install
- Open the generated workspace:
open DaysUntilBirthdayForPod.xcworkspace
- Run the
DaysUntilBirthdayForPod (iOS)
orDaysUntilBirthdayForPod (macOS)
target.
- In the
../Samples/Swift/DaysUntilBirthday/
folder, open the project:
open DaysUntilBirthday.xcodeproj
- Run the
DaysUntilBirthday (iOS)
orDaysUntilBirthday (macOS)
target.
If you are running the DaysUntilBirthday
sample app on macOS, you may see an
error like the below:
Error! Optional(Error Domain=com.google.GIDSignIn Code=-2 "keychain error" UserInfo={NSLocalizedDescription=keychain error})
This error is related to the signing of the sample app. You have two choices to remedy the problem.
- We suggest that you manually manage the signing of the macOS sample app so that you can provide a provisioning profile. Make sure to select a profile that is able to sign macOS apps.
- If you do not have the correct provisioning profile, and are unable to
generate one, then you can add the "Keychain Sharing" capability
to the
DaysUntilBirthday (macOS)
target as a workaround.
We run integration tests on the DaysUntilBirthday(iOS)
sample app.
These tests attempt to login via Google Sign-in, and so they need an email and
a password.
The email and password that we use are defined as
secrets
on our GitHub repo, and we retrieve these from the workflow environment.
Locally, both the email and password need to be passed to xcodebuild
as
arguments: xcodebuild <other args> EMAIL_SECRET=... PASSWORD_SECRET=...
.
Refer to the repo's Secrets for these values.