Skip to content

Commit eb25860

Browse files
jeongshinclaude
andcommitted
fix(ios): add __has_include guard for Swift bridging header
Support static framework linking by checking for <RateApp/RateApp-Swift.h> before falling back to "RateApp-Swift.h". This prevents build failures when using `use_frameworks! :linkage => :static` in Podfile. Ref: react-native-documents/document-picker#771 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f96f434 commit eb25860

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ios/RateApp.mm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#import "RateApp.h"
2+
#if __has_include(<RateApp/RateApp-Swift.h>)
3+
#import <RateApp/RateApp-Swift.h>
4+
#else
25
#import "RateApp-Swift.h"
6+
#endif
37
#import <React/RCTBridgeModule.h>
48

59
@implementation RateApp {

0 commit comments

Comments
 (0)