Enable Catalyst support for iOS framework (#17)

This commit is contained in:
Loïs Di Qual 2020-03-08 21:49:26 -06:00 committed by GitHub
parent de5c32c15a
commit 1a3d3c8bf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 17 additions and 12 deletions

View File

@ -6,6 +6,7 @@ Changelog
## [0.1.0]
- Added `macOS` and `tvOS` support.
- Added Catalyst support in the Introspect iOS framework.
## [0.0.6]

View File

@ -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";
};

View File

@ -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>

View File

@ -1,4 +1,4 @@
#if canImport(AppKit)
#if canImport(AppKit) && !targetEnvironment(macCatalyst)
import SwiftUI
import AppKit

View File

@ -114,7 +114,7 @@ extension View {
}
#endif
#if canImport(AppKit)
#if canImport(AppKit) && !targetEnvironment(macCatalyst)
extension View {
/// Finds a `TargetView` from a `SwiftUI.View`

View File

@ -1,4 +1,4 @@
#if canImport(AppKit)
#if canImport(AppKit) && !targetEnvironment(macCatalyst)
import XCTest
import SwiftUI