From 1bda0651fc5dbc1d5587ebcc51144e8a110fa8fc Mon Sep 17 00:00:00 2001 From: Matthew Mathias Date: Wed, 7 Sep 2022 17:49:54 -0700 Subject: [PATCH] Update DaysUntilBirthday instructions for macOS sample --- Samples/Swift/DaysUntilBirthday/README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Samples/Swift/DaysUntilBirthday/README.md b/Samples/Swift/DaysUntilBirthday/README.md index 9b49509c..e19bdf0a 100644 --- a/Samples/Swift/DaysUntilBirthday/README.md +++ b/Samples/Swift/DaysUntilBirthday/README.md @@ -26,6 +26,25 @@ open DaysUntilBirthday.xcodeproj ``` 2. Run the `DaysUntilBirthday (iOS)` or `DaysUntilBirthday (macOS)` target. +## A Note on running the macOS Sample + +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. + +1. 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. +2. If you do not have the correct provisioning profile, and are unable to +generate one, then you can add the ["Keychain Sharing" capability](https://developer.apple.com/documentation/xcode/configuring-keychain-sharing) +to the `DaysUntilBirthday (macOS)` target as a workaround. + ## Integration Tests We run integration tests on the `DaysUntilBirthday(iOS)` sample app.