Skip to content

Commit ca5bd0c

Browse files
committed
feat!: Enable compiling for Apple Vision platform
1 parent 3e2fd25 commit ca5bd0c

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

CordovaLib/CordovaLib.xcodeproj/project.pbxproj

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,10 @@
638638
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
639639
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++14";
640640
PUBLIC_HEADERS_FOLDER_PATH = include/Cordova;
641-
TARGETED_DEVICE_FAMILY = "1,2";
641+
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator xros xrsimulator";
642+
SUPPORTS_MACCATALYST = YES;
643+
TARGETED_DEVICE_FAMILY = "1,2,7";
644+
XROS_DEPLOYMENT_TARGET = 1.0;
642645
};
643646
name = Debug;
644647
};
@@ -649,7 +652,10 @@
649652
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
650653
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++14";
651654
PUBLIC_HEADERS_FOLDER_PATH = include/Cordova;
652-
TARGETED_DEVICE_FAMILY = "1,2";
655+
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator xros xrsimulator";
656+
SUPPORTS_MACCATALYST = YES;
657+
TARGETED_DEVICE_FAMILY = "1,2,7";
658+
XROS_DEPLOYMENT_TARGET = 1.0;
653659
};
654660
name = Release;
655661
};
@@ -809,9 +815,12 @@
809815
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++14";
810816
PRODUCT_BUNDLE_IDENTIFIER = org.apache.cordova.Cordova;
811817
SKIP_INSTALL = NO;
812-
TARGETED_DEVICE_FAMILY = "1,2";
818+
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator xros xrsimulator";
819+
SUPPORTS_MACCATALYST = YES;
820+
TARGETED_DEVICE_FAMILY = "1,2,7";
813821
VERSIONING_SYSTEM = "apple-generic";
814822
VERSION_INFO_PREFIX = "";
823+
XROS_DEPLOYMENT_TARGET = 1.0;
815824
};
816825
name = Debug;
817826
};
@@ -832,9 +841,12 @@
832841
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++14";
833842
PRODUCT_BUNDLE_IDENTIFIER = org.apache.cordova.Cordova;
834843
SKIP_INSTALL = NO;
835-
TARGETED_DEVICE_FAMILY = "1,2";
844+
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator xros xrsimulator";
845+
SUPPORTS_MACCATALYST = YES;
846+
TARGETED_DEVICE_FAMILY = "1,2,7";
836847
VERSIONING_SYSTEM = "apple-generic";
837848
VERSION_INFO_PREFIX = "";
849+
XROS_DEPLOYMENT_TARGET = 1.0;
838850
};
839851
name = Release;
840852
};

templates/project/__PROJECT_NAME__.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
objects = {
2626

2727
/* Begin PBXBuildFile section */
28-
902AE2142C6C059A0041150F /* Cordova.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 907F985F2C06B8DE00D2D242 /* Cordova.framework */; platformFilters = (ios, maccatalyst, ); settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
28+
902AE2142C6C059A0041150F /* Cordova.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 907F985F2C06B8DE00D2D242 /* Cordova.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
2929
907F98562C06B87200D2D242 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 907F98552C06B87200D2D242 /* PrivacyInfo.xcprivacy */; };
3030
907F98662C06BC1B00D2D242 /* config.xml in Resources */ = {isa = PBXBuildFile; fileRef = 907F98652C06BC1B00D2D242 /* config.xml */; };
3131
907F986A2C06BCD300D2D242 /* www in Resources */ = {isa = PBXBuildFile; fileRef = 907F98692C06BCD300D2D242 /* www */; };

0 commit comments

Comments
 (0)