From 1df9ea20b6bfde5163b0486e444e5471fb8343b2 Mon Sep 17 00:00:00 2001 From: Gabriel Matos Date: Tue, 14 May 2024 19:19:13 -0300 Subject: [PATCH] fix(ios): watchOS embedded apps (#250) --- .../internal/Swift-ObjC-Bridging-Header.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/project-template-ios/internal/Swift-ObjC-Bridging-Header.h b/project-template-ios/internal/Swift-ObjC-Bridging-Header.h index 7db14b65..5683610d 100644 --- a/project-template-ios/internal/Swift-ObjC-Bridging-Header.h +++ b/project-template-ios/internal/Swift-ObjC-Bridging-Header.h @@ -10,5 +10,9 @@ // the *-Swift.h*. // https://developer.apple.com/documentation/swift/imported_c_and_objective-c_apis/importing_objective-c_into_swift -#import "NativeScript/NativeScript.h" -#import "NativeScriptStart.h" +#import "TargetConditionals.h" + +#ifndef TARGET_OS_WATCH + #import "NativeScript/NativeScript.h" + #import "NativeScriptStart.h" +#endif