Skip to content

Commit

Permalink
Fix warning due to NSUInteger length on watchOS (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheard authored Oct 27, 2023
1 parent c083e47 commit 5889dd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/app_check_core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
target: [ios, tvos, macos]
target: [ios, tvos, macos, watchos]
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
Expand Down
4 changes: 2 additions & 2 deletions AppCheckCore/Sources/Core/Errors/GACAppCheckErrorUtil.m
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ + (NSError *)appAttestAttestKeyFailedWithError:(NSError *)error
[NSString stringWithFormat:@"Failed to attest the validity of the generated cryptographic "
@"key (`attestKey:clientDataHash:completionHandler:`); "
@"keyId.length = %lu, clientDataHash.length = %lu",
keyId.length, clientDataHash.length];
(unsigned long)keyId.length, (unsigned long)clientDataHash.length];
// TODO(#31): Add a new error code for this case (e.g., GACAppCheckAppAttestAttestKeyFailed).
return [self appCheckErrorWithCode:GACAppCheckErrorCodeUnknown
failureReason:failureReason
Expand All @@ -150,7 +150,7 @@ + (NSError *)appAttestGenerateAssertionFailedWithError:(NSError *)error
stringWithFormat:@"Failed to create a block of data that demonstrates the legitimacy of the "
@"app instance (`generateAssertion:clientDataHash:completionHandler:`); "
@"keyId.length = %lu, clientDataHash.length = %lu.",
keyId.length, clientDataHash.length];
(unsigned long)keyId.length, (unsigned long)clientDataHash.length];
// TODO(#31): Add error code for this case (e.g., GACAppCheckAppAttestGenerateAssertionFailed).
return [self appCheckErrorWithCode:GACAppCheckErrorCodeUnknown
failureReason:failureReason
Expand Down

0 comments on commit 5889dd5

Please sign in to comment.