Enable mac catalyst using the pbxproj template file

I asked a similar question in the following thread https://developer.apple.com/forums/thread/700817, I got the answer but I would like to enable the port my app with mac Catalyst but with template file. My project relies heavily on the pbxproj.template file and I would like to it via template instead of making changes in xcode

Initially I was able to run for iphone os targets but I made changes to existing template to include

SUPPORTS_MACCATALYST = YES; SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES;

but that didn't help and I still get the error that it is unable to find the library in the location when I run for MacOS.

so I understand I need xcframework for MacOS specifically but can we do via the template?

Sample template


/* Begin PBXHeadersBuildPhase section */
      0657BF9D263C8102008D179B /* Headers */ = {
         isa = PBXHeadersBuildPhase;
         buildActionMask = 2147483647;
         files = (

         );
         runOnlyForDeploymentPostprocessing = 0;
      };
/* End PBXHeadersBuildPhase section */

/* Begin PBXNativeTarget section */
      0657BFA1263C8102008D179B /* jam_lite{{__COMPONENT_SET__}} */ = {
         isa = PBXNativeTarget;
         buildConfigurationList = 0657BFAA263C8102008D179B /* Build configuration list for PBXNativeTarget "jam_lite{{__COMPONENT_SET__}}" */;
         buildPhases = (
            0657BF9D263C8102008D179B /* Headers */,
            0657BF9E263C8102008D179B /* Sources */,
            0657BF9F263C8102008D179B /* Frameworks */,
            0657BFA0263C8102008D179B /* Resources */,
         );
         buildRules = (
         );
         dependencies = (
         );
         name = jam_lite{{__COMPONENT_SET__}};
         productName = jam_lite{{__COMPONENT_SET__}};
         productReference = 0657BFA2263C8102008D179B /* jam_lite{{__COMPONENT_SET__}}.framework */;
         productType = "com.apple.product-type.framework";
      };
/* End PBXNativeTarget section */

/* Begin PBXProject section */
      0657BF99263C8102008D179B /* Project object */ = {
         isa = PBXProject;
         attributes = {
            LastUpgradeCheck = 1250;
            TargetAttributes = {
               0657BFA1263C8102008D179B = {
                  CreatedOnToolsVersion = 12.5;
               };
            };
         };
         buildConfigurationList = 0657BF9C263C8102008D179B /* Build configuration list for PBXProject "jam_lite{{__COMPONENT_SET__}}" */;
         compatibilityVersion = "Xcode 9.3";
         developmentRegion = en;
         hasScannedForEncodings = 0;
         knownRegions = (
            en,
            Base,
         );
         mainGroup = 0657BF98263C8102008D179B;
         productRefGroup = 0657BFA3263C8102008D179B /* Products */;
         projectDirPath = "";
         projectRoot = "";
         targets = (
            0657BFA1263C8102008D179B /* jam_lite{{__COMPONENT_SET__}} */,
         );
      };
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
      0657BFA0263C8102008D179B /* Resources */ = {
         isa = PBXResourcesBuildPhase;
         buildActionMask = 2147483647;
         files = (
         );
         runOnlyForDeploymentPostprocessing = 0;
      };
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
      0657BF9E263C8102008D179B /* Sources */ = {
         isa = PBXSourcesBuildPhase;
         buildActionMask = 2147483647;
         files = (
            0657BFAF263C8246008D179B /* dummy.cpp in Sources */,
         );
         runOnlyForDeploymentPostprocessing = 0;
      };
/* End PBXSourcesBuildPhase section */

/* Begin XCBuildConfiguration section */
      0657BFAB263C8102008D179B /* Debug */ = {
         isa = XCBuildConfiguration;
         buildSettings = {
             ALWAYS_SEARCH_USER_PATHS = NO;
            ARCHS = (
               armv7,
               x86_64,
               arm64
            );
            CODE_SIGN_STYLE = Automatic;
            DEFINES_MODULE = YES;
            DEVELOPMENT_TEAM = xxxx;
            HEADER_SEARCH_PATHS = (

            );
            INFOPLIST_FILE = jam_lite/Info.plist;
            INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
            IPHONEOS_DEPLOYMENT_TARGET = 10.0;
            "IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 13.1;
            LD_RUNPATH_SEARCH_PATHS = (
               "$(inherited)",
               "@executable_path/Frameworks",
               "@loader_path/Frameworks",
            );
            MACH_O_TYPE = staticlib;
            ONLY_ACTIVE_ARCH = NO;
            OTHER_CFLAGS = (
            );
            PRODUCT_BUNDLE_IDENTIFIER = com.jam_lite{{__COMPONENT_SET__}};
            PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
            SDKROOT = iphoneos;

            SKIP_INSTALL = NO;
            SUPPORTS_MACCATALYST = YES;
            SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES;
            TARGETED_DEVICE_FAMILY = "1,2";
         };
         name = Debug;
      };       
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
      0657BF9C263C8102008D179B /* Build configuration list for PBXProject "jam_lite_{{__COMPONENT_SET__}}" */ = {
         isa = XCConfigurationList;
         buildConfigurations = (
            2EB60FB31DF7B32800F69392 /* Production */,
         );
         defaultConfigurationIsVisible = 0;
         defaultConfigurationName = Release;
      };
      0657BFAA263C8102008D179B /* Build configuration list for PBXNativeTarget "jam_lite_{{__COMPONENT_SET__}}" */ = {
         isa = XCConfigurationList;
         buildConfigurations = (
            2EB60FB31DF7B32800F69392 /* Production */,
         );
         defaultConfigurationIsVisible = 0;
         defaultConfigurationName = Release;
      };
/* End XCConfigurationList section */
   };
   rootObject = 0657BF99263C8102008D179B /* Project object */;
}
Enable mac catalyst using the pbxproj template file
 
 
Q