Enable Catalyst support for iOS framework (#17)
This commit is contained in:
parent
de5c32c15a
commit
1a3d3c8bf7
|
@ -6,6 +6,7 @@ Changelog
|
|||
## [0.1.0]
|
||||
|
||||
- Added `macOS` and `tvOS` support.
|
||||
- Added Catalyst support in the Introspect iOS framework.
|
||||
|
||||
## [0.0.6]
|
||||
|
||||
|
|
|
@ -785,7 +785,7 @@
|
|||
PRODUCT_NAME = Introspect;
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
SKIP_INSTALL = YES;
|
||||
SUPPORTS_MACCATALYST = NO;
|
||||
SUPPORTS_MACCATALYST = YES;
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||
SWIFT_VERSION = 5.0;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
|
@ -813,7 +813,7 @@
|
|||
PRODUCT_NAME = Introspect;
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
SKIP_INSTALL = YES;
|
||||
SUPPORTS_MACCATALYST = NO;
|
||||
SUPPORTS_MACCATALYST = YES;
|
||||
SWIFT_VERSION = 5.0;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
};
|
||||
|
@ -823,8 +823,8 @@
|
|||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
DEVELOPMENT_TEAM = 5CYVM7UEHW;
|
||||
CODE_SIGN_STYLE = Manual;
|
||||
DEVELOPMENT_TEAM = "";
|
||||
INFOPLIST_FILE = IntrospectTests/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
|
@ -833,6 +833,8 @@
|
|||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.loisdiqual.IntrospectTests;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
"PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "";
|
||||
SWIFT_VERSION = 5.0;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
};
|
||||
|
@ -842,8 +844,8 @@
|
|||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
DEVELOPMENT_TEAM = 5CYVM7UEHW;
|
||||
CODE_SIGN_STYLE = Manual;
|
||||
DEVELOPMENT_TEAM = "";
|
||||
INFOPLIST_FILE = IntrospectTests/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
|
@ -852,6 +854,8 @@
|
|||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.loisdiqual.IntrospectTests;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
"PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "";
|
||||
SWIFT_VERSION = 5.0;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
};
|
||||
|
|
|
@ -12,17 +12,17 @@
|
|||
<key>Introspect macOS.xcscheme_^#shared#^_</key>
|
||||
<dict>
|
||||
<key>orderHint</key>
|
||||
<integer>3</integer>
|
||||
<integer>1</integer>
|
||||
</dict>
|
||||
<key>Introspect tvOS.xcscheme_^#shared#^_</key>
|
||||
<dict>
|
||||
<key>orderHint</key>
|
||||
<integer>4</integer>
|
||||
<integer>2</integer>
|
||||
</dict>
|
||||
<key>IntrospectExamples.xcscheme_^#shared#^_</key>
|
||||
<dict>
|
||||
<key>orderHint</key>
|
||||
<integer>5</integer>
|
||||
<integer>3</integer>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>SuppressBuildableAutocreation</key>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#if canImport(AppKit)
|
||||
#if canImport(AppKit) && !targetEnvironment(macCatalyst)
|
||||
import SwiftUI
|
||||
import AppKit
|
||||
|
||||
|
|
|
@ -114,7 +114,7 @@ extension View {
|
|||
}
|
||||
#endif
|
||||
|
||||
#if canImport(AppKit)
|
||||
#if canImport(AppKit) && !targetEnvironment(macCatalyst)
|
||||
extension View {
|
||||
|
||||
/// Finds a `TargetView` from a `SwiftUI.View`
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#if canImport(AppKit)
|
||||
#if canImport(AppKit) && !targetEnvironment(macCatalyst)
|
||||
|
||||
import XCTest
|
||||
import SwiftUI
|
||||
|
|
Loading…
Reference in New Issue