From df0aa6b9f9269cc7819e2755983e2a2993464d11 Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 2 Jul 2026 19:05:23 +0800 Subject: [PATCH] Fix: Improve bridging header with conditional include --- iOS-SwiftUI-Code/Library/Library-Bridging-Header.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/iOS-SwiftUI-Code/Library/Library-Bridging-Header.h b/iOS-SwiftUI-Code/Library/Library-Bridging-Header.h index 1de4047..a48fcdd 100644 --- a/iOS-SwiftUI-Code/Library/Library-Bridging-Header.h +++ b/iOS-SwiftUI-Code/Library/Library-Bridging-Header.h @@ -5,4 +5,11 @@ // Bridging header for Libbox.xcframework // -#import \ No newline at end of file +// Import Libbox Objective-C headers for Swift access +// Note: The framework must be linked and framework search paths must be set correctly + +#if __has_include() +#import +#elif __has_include("Libbox.h") +#import "Libbox.h" +#endif \ No newline at end of file