Skip to content

Commit 7edf84e

Browse files
committed
visionOS - Add Package.swift for SPM support
1 parent 98afafe commit 7edf84e

2 files changed

Lines changed: 12 additions & 7 deletions

File tree

MessageKit.xcodeproj/project.pbxproj

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@
618618
GENERATE_INFOPLIST_FILE = YES;
619619
INFOPLIST_KEY_NSHumanReadableCopyright = "";
620620
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
621-
IPHONEOS_DEPLOYMENT_TARGET = 15.5;
621+
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
622622
LD_RUNPATH_SEARCH_PATHS = (
623623
"$(inherited)",
624624
"@executable_path/Frameworks",
@@ -634,14 +634,15 @@
634634
SDKROOT = iphoneos;
635635
SKIP_INSTALL = YES;
636636
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator xros xrsimulator";
637-
SUPPORTS_MACCATALYST = YES;
637+
SUPPORTS_MACCATALYST = NO;
638638
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
639639
SWIFT_EMIT_LOC_STRINGS = YES;
640640
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
641641
SWIFT_VERSION = 5.0;
642642
TARGETED_DEVICE_FAMILY = "1,2,7";
643643
VERSIONING_SYSTEM = "apple-generic";
644644
VERSION_INFO_PREFIX = "";
645+
XROS_DEPLOYMENT_TARGET = 2.0;
645646
};
646647
name = Debug;
647648
};
@@ -700,7 +701,7 @@
700701
GENERATE_INFOPLIST_FILE = YES;
701702
INFOPLIST_KEY_NSHumanReadableCopyright = "";
702703
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
703-
IPHONEOS_DEPLOYMENT_TARGET = 15.5;
704+
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
704705
LD_RUNPATH_SEARCH_PATHS = (
705706
"$(inherited)",
706707
"@executable_path/Frameworks",
@@ -715,7 +716,7 @@
715716
SDKROOT = iphoneos;
716717
SKIP_INSTALL = YES;
717718
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator xros xrsimulator";
718-
SUPPORTS_MACCATALYST = YES;
719+
SUPPORTS_MACCATALYST = NO;
719720
SWIFT_COMPILATION_MODE = wholemodule;
720721
SWIFT_EMIT_LOC_STRINGS = YES;
721722
SWIFT_OPTIMIZATION_LEVEL = "-O";
@@ -724,6 +725,7 @@
724725
VALIDATE_PRODUCT = YES;
725726
VERSIONING_SYSTEM = "apple-generic";
726727
VERSION_INFO_PREFIX = "";
728+
XROS_DEPLOYMENT_TARGET = 2.0;
727729
};
728730
name = Release;
729731
};

Package.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.5
1+
// swift-tools-version: 6.0
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
/*
@@ -27,12 +27,15 @@ import PackageDescription
2727

2828
let package = Package(
2929
name: "MessageKit",
30-
platforms: [.iOS(.v12)],
30+
platforms: [
31+
.iOS(.v16),
32+
.visionOS(.v2)
33+
],
3134
products: [
3235
.library(name: "MessageKit", targets: ["MessageKit"]),
3336
],
3437
dependencies: [
35-
.package(url: "https://github.com/nathantannar4/InputBarAccessoryView", .upToNextMajor(from: "5.4.0"))
38+
.package(url: "git@github.com:HaleXie/InputBarAccessoryView.git", branch: "visionOS")
3639
],
3740
targets: [
3841
.target(

0 commit comments

Comments
 (0)