Skip to content

Commit a550e68

Browse files
authored
Fix device-only build warning (#8696)
1 parent d898b64 commit a550e68

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

FirebaseDynamicLinks/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# v8.9.0
2+
- [fixed] Fix device-only build warning for unused `processIsTranslated` function. (#8694)
3+
14
# v8.8.0
25
- [fixed] Firebase dynamic links with custom domain will only work if the custom domain has a trailing '/'. (#7087)
36

FirebaseDynamicLinks/Sources/FIRDLJavaScriptExecutor.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ - (void)webView:(WKWebView *)webView
155155
// and -1 when an error occurs.
156156
// From:
157157
// https://developer.apple.com/documentation/apple-silicon/about-the-rosetta-translation-environment
158+
#if TARGET_OS_SIMULATOR
158159
static int processIsTranslated() {
159160
int ret = 0;
160161
size_t size = sizeof(ret);
@@ -164,6 +165,7 @@ static int processIsTranslated() {
164165
}
165166
return ret;
166167
}
168+
#endif
167169

168170
@end
169171

0 commit comments

Comments
 (0)