Skip to content

Commit 3e4b721

Browse files
authored
[App Check] Fix warning due to NSUInteger length on watchOS (#11974)
1 parent 3af0241 commit 3e4b721

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/firebase_app_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
matrix:
2424
podspec: [FirebaseAppCheckInterop.podspec, FirebaseAppCheck.podspec]
25-
target: [ios, tvos, macos]
25+
target: [ios, tvos, macos, watchos]
2626
steps:
2727
- uses: actions/checkout@v3
2828
- uses: ruby/setup-ruby@v1

FirebaseAppCheck/Sources/Core/Errors/FIRAppCheckErrorUtil.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ + (NSError *)appAttestAttestKeyFailedWithError:(NSError *)error
136136
[NSString stringWithFormat:@"Failed to attest the validity of the generated cryptographic "
137137
@"key (`attestKey:clientDataHash:completionHandler:`); "
138138
@"keyId.length = %lu, clientDataHash.length = %lu",
139-
keyId.length, clientDataHash.length];
139+
(unsigned long)keyId.length, (unsigned long)clientDataHash.length];
140140
// TODO(#11967): Add a new error code for this case (e.g., FIRAppCheckAppAttestAttestKeyFailed).
141141
return [self appCheckErrorWithCode:FIRAppCheckErrorCodeUnknown
142142
failureReason:failureReason
@@ -150,7 +150,7 @@ + (NSError *)appAttestGenerateAssertionFailedWithError:(NSError *)error
150150
stringWithFormat:@"Failed to create a block of data that demonstrates the legitimacy of the "
151151
@"app instance (`generateAssertion:clientDataHash:completionHandler:`); "
152152
@"keyId.length = %lu, clientDataHash.length = %lu.",
153-
keyId.length, clientDataHash.length];
153+
(unsigned long)keyId.length, (unsigned long)clientDataHash.length];
154154
// TODO(#11967): Add error code for this case (e.g., FIRAppCheckAppAttestGenerateAssertionFailed).
155155
return [self appCheckErrorWithCode:FIRAppCheckErrorCodeUnknown
156156
failureReason:failureReason

0 commit comments

Comments
 (0)