Skip to content

Commit 1df9ea2

Browse files
authored
fix(ios): watchOS embedded apps (#250)
1 parent c1c95cf commit 1df9ea2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

project-template-ios/internal/Swift-ObjC-Bridging-Header.h

+6-2
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,9 @@
1010
// the *-Swift.h*.
1111
// https://developer.apple.com/documentation/swift/imported_c_and_objective-c_apis/importing_objective-c_into_swift
1212

13-
#import "NativeScript/NativeScript.h"
14-
#import "NativeScriptStart.h"
13+
#import "TargetConditionals.h"
14+
15+
#ifndef TARGET_OS_WATCH
16+
#import "NativeScript/NativeScript.h"
17+
#import "NativeScriptStart.h"
18+
#endif

0 commit comments

Comments
 (0)