Skip to content

Commit 5fcba64

Browse files
authored
Fix UIDevice support enabled for watch on Xcode 26 (#8783)
1 parent d8a8c09 commit 5fcba64

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Realm/RLMApp.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@
2121
#import <sys/utsname.h>
2222
#if __has_include(<UIKit/UIDevice.h>)
2323
#import <UIKit/UIDevice.h>
24+
#ifndef TARGET_OS_WATCH
2425
#define REALM_UIDEVICE_AVAILABLE
2526
#endif
27+
#endif
2628

2729
#import "RLMAnalytics.hpp"
2830
#import "RLMBSON_Private.hpp"

0 commit comments

Comments
 (0)