Fix: Add HEADER_SEARCH_PATHS for Libbox headers in bridging header

This commit is contained in:
2026-07-02 19:26:42 +08:00
parent 1d0acc8f38
commit 7e267072f3
2 changed files with 12 additions and 8 deletions
@@ -5,11 +5,7 @@
// Bridging header for Libbox.xcframework
//
// 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
// Import Libbox Objective-C headers directly for Swift access
#import "Libbox.objc.h"
#import "Universe.objc.h"
#import "ref.h"
@@ -1993,6 +1993,10 @@
"$(inherited)",
"$(PROJECT_DIR)",
);
HEADER_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/Libbox.xcframework/**",
);
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
@@ -2048,6 +2052,10 @@
"$(inherited)",
"$(PROJECT_DIR)",
);
HEADER_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/Libbox.xcframework/**",
);
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";