<commit_before># Google Sign-In Swift Sample App

## CocoaPods

1. In the `../Samples/Swift/DaysUntilBirthday/` folder, run the following 
[CocoaPods](https://cocoapods.org) command.

```
pod install
```

2. Open the generated workspace:

```
open DaysUntilBirthdayForPod.xcworkspace
```

3. Run the `DaysUntilBirthdayForPod (iOS)` or `DaysUntilBirthdayForPod (macOS)`target.

## Swift Package Manager

1. In the `../Samples/Swift/DaysUntilBirthday/` folder, open the project:

```
open DaysUntilBirthday.xcodeproj
```
2. Run the `DaysUntilBirthday (iOS)` or `DaysUntilBirthday (macOS)` target.

## Integration Tests

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](https://docs.github.com/en/actions/learn-github-actions/contexts#secrets-context)
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.<commit_msg>Update DaysUntilBirthday instructions for macOS sample (#216)<commit_after># Google Sign-In Swift Sample App

## CocoaPods

1. In the `../Samples/Swift/DaysUntilBirthday/` folder, run the following 
[CocoaPods](https://cocoapods.org) command.

```
pod install
```

2. Open the generated workspace:

```
open DaysUntilBirthdayForPod.xcworkspace
```

3. Run the `DaysUntilBirthdayForPod (iOS)` or `DaysUntilBirthdayForPod (macOS)`target.

## Swift Package Manager

1. In the `../Samples/Swift/DaysUntilBirthday/` folder, open the project:

```
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.
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](https://docs.github.com/en/actions/learn-github-actions/contexts#secrets-context)
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.
{'fraction_non_alphanumeric': 0.09607783520826998, 'fraction_numerical': 0.00486470051687443, 'mean_word_length': 4.864527629233511, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2221664', 'n_tokens_mistral': 1076, 'n_tokens_neox': 1005, 'n_words': 392}