How to add swift package to TemplateInfo.plist?

Viewed 309

I want to link a Swift Package Manager package with my Xcode Template in its TemplateInfo.plist file

which is in Xcode UI located here SPM

I see that in project.pbxproj it looks like

/* Begin XCRemoteSwiftPackageReference section */
        255340AE243903CF00EFC2D2 /* XCRemoteSwiftPackageReference "UIKitPlus" */ = {
            isa = XCRemoteSwiftPackageReference;
            repositoryURL = "https://github.com/MihaelIsaev/UIKitPlus";
            requirement = {
                kind = upToNextMajorVersion;
                minimumVersion = 1.18.0;
            };
        };
/* End XCRemoteSwiftPackageReference section */
/* Begin XCSwiftPackageProductDependency section */
        255340AF243903CF00EFC2D2 /* UIKitPlus */ = {
            isa = XCSwiftPackageProductDependency;
            package = 255340AE243903CF00EFC2D2 /* XCRemoteSwiftPackageReference "UIKitPlus" */;
            productName = UIKitPlus;
        };
/* End XCSwiftPackageProductDependency section */

And I'm trying to find a way how to add it into TemplateInfo.plist to have it pre-added into my new projects.

0 Answers
Related