Fix: Improve bridging header with conditional include

This commit is contained in:
2026-07-02 19:05:23 +08:00
parent b8e2955ebe
commit df0aa6b9f9
@@ -5,4 +5,11 @@
// Bridging header for Libbox.xcframework
//
#import <Libbox/Libbox.h>
// 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(<Libbox/Libbox.h>)
#import <Libbox/Libbox.h>
#elif __has_include("Libbox.h")
#import "Libbox.h"
#endif