Skip to content

Commit 1a3d3c8

Browse files
authored
Enable Catalyst support for iOS framework (#17)
1 parent de5c32c commit 1a3d3c8

File tree

6 files changed

+17
-12
lines changed

6 files changed

+17
-12
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Changelog
66
## [0.1.0]
77

88
- Added `macOS` and `tvOS` support.
9+
- Added Catalyst support in the Introspect iOS framework.
910

1011
## [0.0.6]
1112

Introspect.xcodeproj/project.pbxproj

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@
785785
PRODUCT_NAME = Introspect;
786786
PROVISIONING_PROFILE_SPECIFIER = "";
787787
SKIP_INSTALL = YES;
788-
SUPPORTS_MACCATALYST = NO;
788+
SUPPORTS_MACCATALYST = YES;
789789
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
790790
SWIFT_VERSION = 5.0;
791791
TARGETED_DEVICE_FAMILY = "1,2";
@@ -813,7 +813,7 @@
813813
PRODUCT_NAME = Introspect;
814814
PROVISIONING_PROFILE_SPECIFIER = "";
815815
SKIP_INSTALL = YES;
816-
SUPPORTS_MACCATALYST = NO;
816+
SUPPORTS_MACCATALYST = YES;
817817
SWIFT_VERSION = 5.0;
818818
TARGETED_DEVICE_FAMILY = "1,2";
819819
};
@@ -823,8 +823,8 @@
823823
isa = XCBuildConfiguration;
824824
buildSettings = {
825825
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
826-
CODE_SIGN_STYLE = Automatic;
827-
DEVELOPMENT_TEAM = 5CYVM7UEHW;
826+
CODE_SIGN_STYLE = Manual;
827+
DEVELOPMENT_TEAM = "";
828828
INFOPLIST_FILE = IntrospectTests/Info.plist;
829829
LD_RUNPATH_SEARCH_PATHS = (
830830
"$(inherited)",
@@ -833,6 +833,8 @@
833833
);
834834
PRODUCT_BUNDLE_IDENTIFIER = com.loisdiqual.IntrospectTests;
835835
PRODUCT_NAME = "$(TARGET_NAME)";
836+
PROVISIONING_PROFILE_SPECIFIER = "";
837+
"PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "";
836838
SWIFT_VERSION = 5.0;
837839
TARGETED_DEVICE_FAMILY = "1,2";
838840
};
@@ -842,8 +844,8 @@
842844
isa = XCBuildConfiguration;
843845
buildSettings = {
844846
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
845-
CODE_SIGN_STYLE = Automatic;
846-
DEVELOPMENT_TEAM = 5CYVM7UEHW;
847+
CODE_SIGN_STYLE = Manual;
848+
DEVELOPMENT_TEAM = "";
847849
INFOPLIST_FILE = IntrospectTests/Info.plist;
848850
LD_RUNPATH_SEARCH_PATHS = (
849851
"$(inherited)",
@@ -852,6 +854,8 @@
852854
);
853855
PRODUCT_BUNDLE_IDENTIFIER = com.loisdiqual.IntrospectTests;
854856
PRODUCT_NAME = "$(TARGET_NAME)";
857+
PROVISIONING_PROFILE_SPECIFIER = "";
858+
"PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "";
855859
SWIFT_VERSION = 5.0;
856860
TARGETED_DEVICE_FAMILY = "1,2";
857861
};

Introspect.xcodeproj/xcuserdata/ldiqual.xcuserdatad/xcschemes/xcschememanagement.plist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
<key>Introspect macOS.xcscheme_^#shared#^_</key>
1313
<dict>
1414
<key>orderHint</key>
15-
<integer>3</integer>
15+
<integer>1</integer>
1616
</dict>
1717
<key>Introspect tvOS.xcscheme_^#shared#^_</key>
1818
<dict>
1919
<key>orderHint</key>
20-
<integer>4</integer>
20+
<integer>2</integer>
2121
</dict>
2222
<key>IntrospectExamples.xcscheme_^#shared#^_</key>
2323
<dict>
2424
<key>orderHint</key>
25-
<integer>5</integer>
25+
<integer>3</integer>
2626
</dict>
2727
</dict>
2828
<key>SuppressBuildableAutocreation</key>

Introspect/AppKitIntrospectionView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if canImport(AppKit)
1+
#if canImport(AppKit) && !targetEnvironment(macCatalyst)
22
import SwiftUI
33
import AppKit
44

Introspect/ViewExtensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ extension View {
114114
}
115115
#endif
116116

117-
#if canImport(AppKit)
117+
#if canImport(AppKit) && !targetEnvironment(macCatalyst)
118118
extension View {
119119

120120
/// Finds a `TargetView` from a `SwiftUI.View`

IntrospectTests/AppKitTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if canImport(AppKit)
1+
#if canImport(AppKit) && !targetEnvironment(macCatalyst)
22

33
import XCTest
44
import SwiftUI

0 commit comments

Comments
 (0)