Fix: Improve bridging header with conditional include
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user