Skip to content

Commit 88b0302

Browse files
authored
Update README.md
1 parent 904c4be commit 88b0302

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

README.md

+18-7
Original file line numberDiff line numberDiff line change
@@ -147,25 +147,36 @@ await notarize({
147147
keychainProfile,
148148
});
149149
```
150+
## Troubleshooting
150151

151-
## Validating credentials
152+
### Debug logging
152153

153-
When notarizing your application
154+
[`debug`](https://www.npmjs.com/package/debug) is used to display logs and messages.
155+
Run your notarization scripts with the `DEBUG=electron-notarize*` environment variable to log additional
156+
debug information from this module.
157+
158+
### Validating credentials
159+
160+
When notarizing your application, you may run into issues with validating your notarization
161+
credentials.
154162

155163
```
156164
Error: HTTP status code: 401. Invalid credentials. Username or password is incorrect.
157165
Use the app-specific password generated at appleid.apple.com. Ensure that all authentication arguments are correct.
158166
```
159167

160-
## Validating app notarization
168+
[Storing your credentials in Keychain](#usage-with-keychain-credentials) will validate your credentials before
169+
even GitHub.
170+
171+
### Validating app notarization
161172

162173
To validate that notarization worked, you can use the `stapler` command-line utility:
163174

164175
```sh
165176
stapler validate path/to/notarized.app
166177
```
167-
## Debug
168178

169-
[`debug`](https://www.npmjs.com/package/debug) is used to display logs and messages.
170-
Run your notarization scripts with the `DEBUG=electron-notarize*` environment variable to log additional
171-
debug information from this module.
179+
### Apple documentation
180+
181+
Apple also provides additional debugging documentation on
182+
[Resolving common notarization issues](https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/resolving_common_notarization_issues).

0 commit comments

Comments
 (0)