diff --git a/iOS-SwiftUI-Code/Library/Library-Bridging-Header.h b/iOS-SwiftUI-Code/Library/Library-Bridging-Header.h index a48fcdd..65a7f87 100644 --- a/iOS-SwiftUI-Code/Library/Library-Bridging-Header.h +++ b/iOS-SwiftUI-Code/Library/Library-Bridging-Header.h @@ -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() -#import -#elif __has_include("Libbox.h") -#import "Libbox.h" -#endif \ No newline at end of file +// Import Libbox Objective-C headers directly for Swift access +#import "Libbox.objc.h" +#import "Universe.objc.h" +#import "ref.h" \ No newline at end of file diff --git a/iOS-SwiftUI-Code/uuvpn.xcodeproj/project.pbxproj b/iOS-SwiftUI-Code/uuvpn.xcodeproj/project.pbxproj index 94b8996..b20ba31 100644 --- a/iOS-SwiftUI-Code/uuvpn.xcodeproj/project.pbxproj +++ b/iOS-SwiftUI-Code/uuvpn.xcodeproj/project.pbxproj @@ -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";