Skip to content

Commit 047a63f

Browse files
committed
Destinations "watchOS, visionOS (Designed for iPad), Mac (Mac Catalyst)" for TestHost
1 parent 53304c5 commit 047a63f

File tree

3 files changed

+30
-34
lines changed

3 files changed

+30
-34
lines changed

Tests/TestHost.xcodeproj/project.pbxproj

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
230F22BE2B5FF8D200D2843A /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = 230F22BD2B5FF8D200D2843A /* README.md */; };
1313
235B8F672B60842A0007969B /* EnumTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 235B8F662B60842A0007969B /* EnumTests.swift */; };
1414
235B8F692B6084E00007969B /* AccessPolicyTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 235B8F682B6084E00007969B /* AccessPolicyTests.swift */; };
15-
23E8EEEC2B5FEAF400A0A188 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 23E8EEEB2B5FEAF400A0A188 /* AppDelegate.swift */; };
15+
23E8EEEC2B5FEAF400A0A188 /* TestApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 23E8EEEB2B5FEAF400A0A188 /* TestApp.swift */; };
1616
/* End PBXBuildFile section */
1717

1818
/* Begin PBXContainerItemProxy section */
@@ -32,7 +32,7 @@
3232
235B8F662B60842A0007969B /* EnumTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EnumTests.swift; sourceTree = "<group>"; };
3333
235B8F682B6084E00007969B /* AccessPolicyTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccessPolicyTests.swift; sourceTree = "<group>"; };
3434
23E8EEE82B5FEAF400A0A188 /* TestHost.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TestHost.app; sourceTree = BUILT_PRODUCTS_DIR; };
35-
23E8EEEB2B5FEAF400A0A188 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
35+
23E8EEEB2B5FEAF400A0A188 /* TestApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestApp.swift; sourceTree = "<group>"; };
3636
23E8EEF12B5FEAF500A0A188 /* TestHost.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = TestHost.entitlements; sourceTree = "<group>"; };
3737
23E8EEF92B5FEAF600A0A188 /* SwiftSecurityTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SwiftSecurityTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
3838
/* End PBXFileReference section */
@@ -78,7 +78,7 @@
7878
23E8EEEA2B5FEAF400A0A188 /* TestHost */ = {
7979
isa = PBXGroup;
8080
children = (
81-
23E8EEEB2B5FEAF400A0A188 /* AppDelegate.swift */,
81+
23E8EEEB2B5FEAF400A0A188 /* TestApp.swift */,
8282
23E8EEF12B5FEAF500A0A188 /* TestHost.entitlements */,
8383
232BD3F92B600EC1003F4EA7 /* TestHost-macOS.entitlements */,
8484
);
@@ -201,7 +201,7 @@
201201
isa = PBXSourcesBuildPhase;
202202
buildActionMask = 2147483647;
203203
files = (
204-
23E8EEEC2B5FEAF400A0A188 /* AppDelegate.swift in Sources */,
204+
23E8EEEC2B5FEAF400A0A188 /* TestApp.swift in Sources */,
205205
);
206206
runOnlyForDeploymentPostprocessing = 0;
207207
};
@@ -299,7 +299,6 @@
299299
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
300300
CODE_SIGN_ENTITLEMENTS = TestHost/TestHost.entitlements;
301301
"CODE_SIGN_ENTITLEMENTS[sdk=macosx*]" = "TestHost/TestHost-macOS.entitlements";
302-
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
303302
CODE_SIGN_STYLE = Automatic;
304303
CURRENT_PROJECT_VERSION = 1;
305304
DEVELOPMENT_TEAM = J59EP59PB8;
@@ -315,14 +314,17 @@
315314
"INFOPLIST_KEY_UIStatusBarStyle[sdk=iphonesimulator*]" = UIStatusBarStyleDefault;
316315
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
317316
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
317+
INFOPLIST_KEY_WKWatchOnly = YES;
318318
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
319319
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
320320
MARKETING_VERSION = 1.0;
321321
PRODUCT_BUNDLE_IDENTIFIER = dev.zharov.TestHost;
322322
PRODUCT_NAME = "$(TARGET_NAME)";
323323
SDKROOT = auto;
324-
SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator macosx xros xrsimulator";
324+
SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator xros xrsimulator";
325325
SUPPORTS_MACCATALYST = YES;
326+
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES;
327+
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = YES;
326328
SWIFT_EMIT_LOC_STRINGS = YES;
327329
SWIFT_VERSION = 5.0;
328330
TARGETED_DEVICE_FAMILY = "1,2,3,7";
@@ -335,20 +337,25 @@
335337
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
336338
BUNDLE_LOADER = "$(TEST_HOST)";
337339
CLANG_ENABLE_MODULES = YES;
340+
CODE_SIGN_IDENTITY = "Apple Development";
338341
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
339342
CODE_SIGN_STYLE = Automatic;
340343
CURRENT_PROJECT_VERSION = 1;
344+
DEVELOPMENT_TEAM = "";
341345
GENERATE_INFOPLIST_FILE = YES;
342346
MARKETING_VERSION = 1.0;
343347
PRODUCT_BUNDLE_IDENTIFIER = dev.zharov.SwiftSecurityTests;
344348
PRODUCT_NAME = "$(TARGET_NAME)";
349+
PROVISIONING_PROFILE_SPECIFIER = "";
345350
SDKROOT = auto;
346-
SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator macosx xros xrsimulator";
351+
SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator xros xrsimulator";
347352
SUPPORTS_MACCATALYST = YES;
353+
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES;
354+
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = YES;
348355
SWIFT_EMIT_LOC_STRINGS = NO;
349356
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
350357
SWIFT_VERSION = 5.0;
351-
TARGETED_DEVICE_FAMILY = "1,2,3,7";
358+
TARGETED_DEVICE_FAMILY = "1,2,3,4,7";
352359
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TestHost.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/TestHost";
353360
};
354361
name = Debug;

Tests/TestHost/AppDelegate.swift

Lines changed: 0 additions & 26 deletions
This file was deleted.

Tests/TestHost/TestApp.swift

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//
2+
// TestApp.swift
3+
// TestHost
4+
//
5+
// Created by Dmitriy Zharov on 29.04.2024.
6+
//
7+
8+
import SwiftUI
9+
10+
@main
11+
struct TestApp: App {
12+
var body: some Scene {
13+
WindowGroup { }
14+
}
15+
}

0 commit comments

Comments
 (0)