// ProjectScaffolder+AUv3.swift // Lyrebird // // Copyright (c) 2026 Joshua Parmenter / realizedsound // SPDX-License-Identifier: MIT import Foundation // MARK: - auv3 template extension ProjectScaffolder { /// Write the full `auv3` template tree at `projectRoot`. /// /// Two targets: /// - Host app `` (SwiftUI; instantiates the extension once so the /// system registers it, then offers a "Try in AUM/GarageBand/Logic" UI) /// - Extension `Extension` (`.appex`, type `aumu`, principal class /// `AudioUnitViewController`). Wraps `Synth` (a /// `SynthesizerBase` subclass) via `LyrebirdAudioUnit`. /// /// `AudioComponentDescription` defaults: type `aumu`, subtype derived /// from the first 4 letters of `name` uppercased, manufacturer `LYRB` /// (placeholder — the user rewrites it to their own 4-char code). static func writeAUv3Files( name: String, projectRoot: String, lyrebirdPath: String?, fm: FileManager ) throws { let appGroupDir: String = (projectRoot as NSString).appendingPathComponent(name) let extGroupDir: String = (projectRoot as NSString) .appendingPathComponent("\(name)Extension") let xcodeprojDir: String = (projectRoot as NSString) .appendingPathComponent("\(name).xcodeproj") let schemeDir: String = (xcodeprojDir as NSString) .appendingPathComponent("xcshareddata/xcschemes") for dir: String in [appGroupDir, extGroupDir, xcodeprojDir, schemeDir] { do { try fm.createDirectory(atPath: dir, withIntermediateDirectories: true, attributes: nil) } catch { try? fm.removeItem(atPath: projectRoot) throw Error.fileSystemError(path: dir, reason: error.localizedDescription) } } let files: [(String, String)] = [ // Host app ((appGroupDir as NSString).appendingPathComponent("Info.plist"), auv3HostInfoPlist(name: name)), ((appGroupDir as NSString).appendingPathComponent("\(name).entitlements"), auv3HostEntitlements()), ((appGroupDir as NSString).appendingPathComponent("\(name)App.swift"), auv3HostAppSwift(name: name)), ((appGroupDir as NSString).appendingPathComponent("ContentView.swift"), auv3HostContentView(name: name)), // Extension ((extGroupDir as NSString).appendingPathComponent("Info.plist"), auv3ExtensionInfoPlist(name: name)), ((extGroupDir as NSString) .appendingPathComponent("\(name)Extension.entitlements"), auv3ExtensionEntitlements()), ((extGroupDir as NSString).appendingPathComponent("\(name)Synth.swift"), auv3SynthSwift(name: name)), ((extGroupDir as NSString).appendingPathComponent("\(name)AudioUnit.swift"), auv3AudioUnitSwift(name: name)), ((extGroupDir as NSString) .appendingPathComponent("\(name)AudioUnitViewController.swift"), auv3AudioUnitViewControllerSwift(name: name)), // Project ((xcodeprojDir as NSString).appendingPathComponent("project.pbxproj"), auv3PBXProj(name: name, lyrebirdPath: lyrebirdPath)), ((schemeDir as NSString).appendingPathComponent("\(name).xcscheme"), appScheme(name: name, productExtension: "app")), ] try writeFiles(files, fm: fm, projectRoot: projectRoot) } // MARK: - Identifiers /// 4-char AudioComponentDescription subtype derived from `name`. If `name` /// has fewer than 4 alphanumeric characters, pads with `X`. Always /// uppercase ASCII. static func auv3Subtype(for name: String) -> String { let alnum: String = name.unicodeScalars .filter { CharacterSet.alphanumerics.contains($0) } .prefix(4) .map { String($0).uppercased() } .joined() let padded: String = alnum + String(repeating: "X", count: max(0, 4 - alnum.count)) return String(padded.prefix(4)) } /// Placeholder 4-char manufacturer code shipped in scaffolded projects. /// Users must rewrite this to their own registered manufacturer code /// before distributing the plugin. static let auv3DefaultManufacturer: String = "LYRB" // MARK: - Source files static func auv3HostInfoPlist(name: String) -> String { appInfoPlist(name: name, platform: .macOS) } static func auv3HostEntitlements() -> String { """ com.apple.security.app-sandbox com.apple.security.files.user-selected.read-only """ } static func auv3ExtensionEntitlements() -> String { """ com.apple.security.app-sandbox """ } static func auv3HostAppSwift(name: String) -> String { """ // \(name) — AUv3 host app // // Launching this app once tells the system to register the bundled // `.appex` extension. After first launch the plugin appears in // Logic / GarageBand / AUM / Loopy Pro / any AUv3-capable host. import SwiftUI @main struct \(name)App: App { var body: some Scene { WindowGroup { ContentView() } } } """ } static func auv3HostContentView(name: String) -> String { """ import SwiftUI struct ContentView: View { var body: some View { VStack(spacing: 16) { Text("\(name)") .font(.largeTitle) Text("Bundled AUv3 plugin: \(auv3DefaultManufacturer) / \(auv3Subtype(for: name))") .font(.subheadline) .foregroundStyle(.secondary) Text("Run this app once to register the plugin, then load it in any AUv3 host (Logic, GarageBand, AUM, Loopy Pro).") .multilineTextAlignment(.center) .frame(maxWidth: 360) } .padding(40) .frame(minWidth: 480, minHeight: 320) } } """ } static func auv3SynthSwift(name: String) -> String { """ import LyrebirdSynth /// Starter `SynthesizerBase` for the \(name) AUv3 plugin. /// /// Sine oscillator with `@LiveParam` controls. Each `@LiveParam` is /// exposed as an AU parameter — see `parameterMetadata()` in /// ``\(name)AudioUnit``. final class \(name)Synth: SynthesizerBase { @LiveParam var freq: Double = 440.0 @LiveParam var amp: Double = 0.25 override func build() { let osc = OscSin.Audio(freq: $freq) * $amp output(bus: 0, source: osc) output(bus: 1, source: osc) } } """ } static func auv3AudioUnitSwift(name: String) -> String { """ import LyrebirdSynth import AVFoundation import AudioToolbox /// AUv3 wrapper around ``\(name)Synth``. Subclasses /// ``LyrebirdAudioUnit`` and only overrides the two required hooks. public final class \(name)AudioUnit: LyrebirdAudioUnit { public override class func makeSynthesizer() -> SynthesizerBase { \(name)Synth() } public override class func parameterMetadata() -> [String: LyrebirdAUParameterInfo] { [ "freq": .init(min: 20, max: 8000, unit: .hertz, displayName: "Frequency"), "amp": .init(min: 0, max: 1, unit: .linearGain, displayName: "Amplitude"), ] } } """ } static func auv3AudioUnitViewControllerSwift(name: String) -> String { """ import CoreAudioKit import AVFoundation /// AUv3 principal class. Hosts use `AUAudioUnitFactory` conformance /// to instantiate ``\(name)AudioUnit`` via `createAudioUnit(with:)`. /// /// Empty placeholder view — drop in ``LyrebirdUI.LyrebirdSynthView`` /// (or your own SwiftUI) to render the parameter grid. public final class \(name)AudioUnitViewController: AUViewController, AUAudioUnitFactory { public override func viewDidLoad() { super.viewDidLoad() } nonisolated public func createAudioUnit( with componentDescription: AudioComponentDescription ) throws -> AUAudioUnit { try \(name)AudioUnit(componentDescription: componentDescription) } } """ } static func auv3ExtensionInfoPlist(name: String) -> String { let subtype: String = auv3Subtype(for: name) let manufacturer: String = auv3DefaultManufacturer return """ CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleDisplayName \(name) CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName $(PRODUCT_NAME) CFBundlePackageType XPC! CFBundleShortVersionString 1.0 CFBundleVersion 1 NSExtension NSExtensionAttributes AudioComponentBundle $(PRODUCT_BUNDLE_IDENTIFIER) AudioComponents name \(name): \(name) description \(name) — Lyrebird AUv3 synth type aumu subtype \(subtype) manufacturer \(manufacturer) version \(auv3DefaultComponentVersion) sandboxSafe tags Synth NSExtensionPointIdentifier com.apple.AudioUnit-UI NSExtensionPrincipalClass \(name)Extension.\(name)AudioUnitViewController """ } // MARK: - AUv3 pbxproj /// `project.pbxproj` for the `auv3` template. Two targets: host app /// `` and extension `Extension`. Host embeds the extension /// via a `PBXCopyFilesBuildPhase` with `dstSubfolderSpec = 13` (Plug-ins). static func auv3PBXProj(name: String, lyrebirdPath: String? = nil) -> String { let hostBundleID: String = "\(defaultBundleIdentifierPrefix).\(name)" let extBundleID: String = "\(hostBundleID).\(name)Extension" let packageRefLabel: String = pbxPackageReferenceLabel(lyrebirdPath: lyrebirdPath) let packageRefSection: String = pbxPackageReferenceSection(lyrebirdPath: lyrebirdPath) return """ // !$*UTF8*$! { \tarchiveVersion = 1; \tclasses = { \t}; \tobjectVersion = 60; \tobjects = { /* Begin PBXBuildFile section */ \t\t\(pbxIOSAppFileBuild) /* \(name)App.swift in Sources */ = {isa = PBXBuildFile; fileRef = \(pbxIOSAppFileRef) /* \(name)App.swift */; }; \t\t\(pbxSynthBuild) /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = \(pbxSynthRef) /* ContentView.swift */; }; \t\t\(pbxExtSynthBuild) /* \(name)Synth.swift in Sources */ = {isa = PBXBuildFile; fileRef = \(pbxExtSynthRef) /* \(name)Synth.swift */; }; \t\t\(pbxExtAuBuild) /* \(name)AudioUnit.swift in Sources */ = {isa = PBXBuildFile; fileRef = \(pbxExtAuRef) /* \(name)AudioUnit.swift */; }; \t\t\(pbxExtVCBuild) /* \(name)AudioUnitViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = \(pbxExtVCRef) /* \(name)AudioUnitViewController.swift */; }; \t\t\(pbxLyrebirdUIFrameworkBuild) /* LyrebirdUI in Frameworks */ = {isa = PBXBuildFile; productRef = \(pbxLyrebirdUIProductDep) /* LyrebirdUI */; }; \t\t\(pbxExtAppexInAppFile) /* \(name)Extension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = \(pbxExtProductRef) /* \(name)Extension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ \t\t\(pbxExtContainerProxy) /* PBXContainerItemProxy */ = { \t\t\tisa = PBXContainerItemProxy; \t\t\tcontainerPortal = \(pbxRootObject) /* Project object */; \t\t\tproxyType = 1; \t\t\tremoteGlobalIDString = \(pbxExtBlueprint); \t\t\tremoteInfo = \(name)Extension; \t\t}; /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ \t\t\(pbxExtCopyAppexPhase) /* Embed App Extensions */ = { \t\t\tisa = PBXCopyFilesBuildPhase; \t\t\tbuildActionMask = \(pbxBuildActionMask); \t\t\tdstPath = ""; \t\t\tdstSubfolderSpec = 13; \t\t\tfiles = ( \t\t\t\t\(pbxExtAppexInAppFile) /* \(name)Extension.appex in Embed App Extensions */, \t\t\t); \t\t\tname = "Embed App Extensions"; \t\t\trunOnlyForDeploymentPostprocessing = 0; \t\t}; /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ \t\t\(pbxAppProductRef) /* \(name).app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = \(name).app; sourceTree = BUILT_PRODUCTS_DIR; }; \t\t\(pbxExtProductRef) /* \(name)Extension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = \(name)Extension.appex; sourceTree = BUILT_PRODUCTS_DIR; }; \t\t\(pbxInfoPlistRef) /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; \t\t\(pbxAppEntitlementsRef) /* \(name).entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = \(name).entitlements; sourceTree = ""; }; \t\t\(pbxIOSAppFileRef) /* \(name)App.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = \(name)App.swift; sourceTree = ""; }; \t\t\(pbxSynthRef) /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; \t\t\(pbxExtInfoPlistRef) /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; \t\t\(pbxExtEntitlementsRef) /* \(name)Extension.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = \(name)Extension.entitlements; sourceTree = ""; }; \t\t\(pbxExtSynthRef) /* \(name)Synth.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = \(name)Synth.swift; sourceTree = ""; }; \t\t\(pbxExtAuRef) /* \(name)AudioUnit.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = \(name)AudioUnit.swift; sourceTree = ""; }; \t\t\(pbxExtVCRef) /* \(name)AudioUnitViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = \(name)AudioUnitViewController.swift; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ \t\t\(pbxFrameworksPhase) /* Frameworks (App) */ = { \t\t\tisa = PBXFrameworksBuildPhase; \t\t\tbuildActionMask = \(pbxBuildActionMask); \t\t\tfiles = ( \t\t\t); \t\t\trunOnlyForDeploymentPostprocessing = 0; \t\t}; \t\t\(pbxExtFrameworksPhase) /* Frameworks (Extension) */ = { \t\t\tisa = PBXFrameworksBuildPhase; \t\t\tbuildActionMask = \(pbxBuildActionMask); \t\t\tfiles = ( \t\t\t\t\(pbxLyrebirdUIFrameworkBuild) /* LyrebirdUI in Frameworks */, \t\t\t); \t\t\trunOnlyForDeploymentPostprocessing = 0; \t\t}; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ \t\t\(pbxMainGroup) /* Main */ = { \t\t\tisa = PBXGroup; \t\t\tchildren = ( \t\t\t\t\(pbxAppGroup) /* \(name) */, \t\t\t\t\(pbxExtGroup) /* \(name)Extension */, \t\t\t\t\(pbxProductsGroup) /* Products */, \t\t\t); \t\t\tsourceTree = ""; \t\t}; \t\t\(pbxProductsGroup) /* Products */ = { \t\t\tisa = PBXGroup; \t\t\tchildren = ( \t\t\t\t\(pbxAppProductRef) /* \(name).app */, \t\t\t\t\(pbxExtProductRef) /* \(name)Extension.appex */, \t\t\t); \t\t\tname = Products; \t\t\tsourceTree = ""; \t\t}; \t\t\(pbxAppGroup) /* \(name) */ = { \t\t\tisa = PBXGroup; \t\t\tchildren = ( \t\t\t\t\(pbxIOSAppFileRef) /* \(name)App.swift */, \t\t\t\t\(pbxSynthRef) /* ContentView.swift */, \t\t\t\t\(pbxInfoPlistRef) /* Info.plist */, \t\t\t\t\(pbxAppEntitlementsRef) /* \(name).entitlements */, \t\t\t); \t\t\tpath = \(name); \t\t\tsourceTree = ""; \t\t}; \t\t\(pbxExtGroup) /* \(name)Extension */ = { \t\t\tisa = PBXGroup; \t\t\tchildren = ( \t\t\t\t\(pbxExtSynthRef) /* \(name)Synth.swift */, \t\t\t\t\(pbxExtAuRef) /* \(name)AudioUnit.swift */, \t\t\t\t\(pbxExtVCRef) /* \(name)AudioUnitViewController.swift */, \t\t\t\t\(pbxExtInfoPlistRef) /* Info.plist */, \t\t\t\t\(pbxExtEntitlementsRef) /* \(name)Extension.entitlements */, \t\t\t); \t\t\tpath = \(name)Extension; \t\t\tsourceTree = ""; \t\t}; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ \t\t\(pbxBlueprintIDApp) /* \(name) */ = { \t\t\tisa = PBXNativeTarget; \t\t\tbuildConfigurationList = \(pbxAppBuildConfigList) /* Build configuration list for PBXNativeTarget "\(name)" */; \t\t\tbuildPhases = ( \t\t\t\t\(pbxSourcesPhase) /* Sources */, \t\t\t\t\(pbxFrameworksPhase) /* Frameworks */, \t\t\t\t\(pbxResourcesPhase) /* Resources */, \t\t\t\t\(pbxExtCopyAppexPhase) /* Embed App Extensions */, \t\t\t); \t\t\tbuildRules = ( \t\t\t); \t\t\tdependencies = ( \t\t\t\t\(pbxExtTargetDep) /* PBXTargetDependency */, \t\t\t); \t\t\tname = \(name); \t\t\tproductName = \(name); \t\t\tproductReference = \(pbxAppProductRef) /* \(name).app */; \t\t\tproductType = "com.apple.product-type.application"; \t\t}; \t\t\(pbxExtBlueprint) /* \(name)Extension */ = { \t\t\tisa = PBXNativeTarget; \t\t\tbuildConfigurationList = \(pbxExtBuildConfigList) /* Build configuration list for PBXNativeTarget "\(name)Extension" */; \t\t\tbuildPhases = ( \t\t\t\t\(pbxExtSourcesPhase) /* Sources */, \t\t\t\t\(pbxExtFrameworksPhase) /* Frameworks */, \t\t\t\t\(pbxExtResourcesPhase) /* Resources */, \t\t\t); \t\t\tbuildRules = ( \t\t\t); \t\t\tdependencies = ( \t\t\t); \t\t\tname = \(name)Extension; \t\t\tpackageProductDependencies = ( \t\t\t\t\(pbxLyrebirdUIProductDep) /* LyrebirdUI */, \t\t\t); \t\t\tproductName = \(name)Extension; \t\t\tproductReference = \(pbxExtProductRef) /* \(name)Extension.appex */; \t\t\tproductType = "com.apple.product-type.app-extension"; \t\t}; /* End PBXNativeTarget section */ /* Begin PBXProject section */ \t\t\(pbxRootObject) /* Project object */ = { \t\t\tisa = PBXProject; \t\t\tattributes = { \t\t\t\tBuildIndependentTargetsInParallel = 1; \t\t\t\tLastSwiftUpdateCheck = 1600; \t\t\t\tLastUpgradeCheck = 1600; \t\t\t\tTargetAttributes = { \t\t\t\t\t\(pbxBlueprintIDApp) = { \t\t\t\t\t\tCreatedOnToolsVersion = 16.0; \t\t\t\t\t}; \t\t\t\t\t\(pbxExtBlueprint) = { \t\t\t\t\t\tCreatedOnToolsVersion = 16.0; \t\t\t\t\t}; \t\t\t\t}; \t\t\t}; \t\t\tbuildConfigurationList = \(pbxProjectBuildConfigList) /* Build configuration list for PBXProject "\(name)" */; \t\t\tcompatibilityVersion = "Xcode 14.0"; \t\t\tdevelopmentRegion = en; \t\t\thasScannedForEncodings = 0; \t\t\tknownRegions = ( \t\t\t\ten, \t\t\t\tBase, \t\t\t); \t\t\tmainGroup = \(pbxMainGroup); \t\t\tpackageReferences = ( \t\t\t\t\(pbxRemoteSPMRef) /* \(packageRefLabel) */, \t\t\t); \t\t\tproductRefGroup = \(pbxProductsGroup) /* Products */; \t\t\tprojectDirPath = ""; \t\t\tprojectRoot = ""; \t\t\ttargets = ( \t\t\t\t\(pbxBlueprintIDApp) /* \(name) */, \t\t\t\t\(pbxExtBlueprint) /* \(name)Extension */, \t\t\t); \t\t}; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ \t\t\(pbxResourcesPhase) /* Resources (App) */ = { \t\t\tisa = PBXResourcesBuildPhase; \t\t\tbuildActionMask = \(pbxBuildActionMask); \t\t\tfiles = ( \t\t\t); \t\t\trunOnlyForDeploymentPostprocessing = 0; \t\t}; \t\t\(pbxExtResourcesPhase) /* Resources (Extension) */ = { \t\t\tisa = PBXResourcesBuildPhase; \t\t\tbuildActionMask = \(pbxBuildActionMask); \t\t\tfiles = ( \t\t\t); \t\t\trunOnlyForDeploymentPostprocessing = 0; \t\t}; /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ \t\t\(pbxSourcesPhase) /* Sources (App) */ = { \t\t\tisa = PBXSourcesBuildPhase; \t\t\tbuildActionMask = \(pbxBuildActionMask); \t\t\tfiles = ( \t\t\t\t\(pbxIOSAppFileBuild) /* \(name)App.swift in Sources */, \t\t\t\t\(pbxSynthBuild) /* ContentView.swift in Sources */, \t\t\t); \t\t\trunOnlyForDeploymentPostprocessing = 0; \t\t}; \t\t\(pbxExtSourcesPhase) /* Sources (Extension) */ = { \t\t\tisa = PBXSourcesBuildPhase; \t\t\tbuildActionMask = \(pbxBuildActionMask); \t\t\tfiles = ( \t\t\t\t\(pbxExtSynthBuild) /* \(name)Synth.swift in Sources */, \t\t\t\t\(pbxExtAuBuild) /* \(name)AudioUnit.swift in Sources */, \t\t\t\t\(pbxExtVCBuild) /* \(name)AudioUnitViewController.swift in Sources */, \t\t\t); \t\t\trunOnlyForDeploymentPostprocessing = 0; \t\t}; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ \t\t\(pbxExtTargetDep) /* PBXTargetDependency */ = { \t\t\tisa = PBXTargetDependency; \t\t\ttarget = \(pbxExtBlueprint) /* \(name)Extension */; \t\t\ttargetProxy = \(pbxExtContainerProxy) /* PBXContainerItemProxy */; \t\t}; /* End PBXTargetDependency section */ /* Begin XCBuildConfiguration section */ \t\t\(pbxAppDebugConfig) /* Debug */ = { \t\t\tisa = XCBuildConfiguration; \t\t\tbuildSettings = { \t\t\t\tCODE_SIGN_ENTITLEMENTS = \(name)/\(name).entitlements; \t\t\t\tCODE_SIGN_STYLE = Automatic; \t\t\t\tCOMBINE_HIDPI_IMAGES = YES; \t\t\t\tCURRENT_PROJECT_VERSION = 1; \t\t\t\tDEAD_CODE_STRIPPING = YES; \t\t\t\tDEVELOPMENT_TEAM = ""; \t\t\t\tENABLE_HARDENED_RUNTIME = YES; \t\t\t\tGENERATE_INFOPLIST_FILE = NO; \t\t\t\tINFOPLIST_FILE = \(name)/Info.plist; \t\t\t\tLD_RUNPATH_SEARCH_PATHS = ( \t\t\t\t\t"$(inherited)", \t\t\t\t\t"@executable_path/../Frameworks", \t\t\t\t); \t\t\t\tMACOSX_DEPLOYMENT_TARGET = 15.0; \t\t\t\tMARKETING_VERSION = 1.0; \t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \(hostBundleID); \t\t\t\tPRODUCT_NAME = "$(TARGET_NAME)"; \t\t\t\tSWIFT_VERSION = 6.0; \t\t\t}; \t\t\tname = Debug; \t\t}; \t\t\(pbxAppReleaseConfig) /* Release */ = { \t\t\tisa = XCBuildConfiguration; \t\t\tbuildSettings = { \t\t\t\tCODE_SIGN_ENTITLEMENTS = \(name)/\(name).entitlements; \t\t\t\tCODE_SIGN_STYLE = Automatic; \t\t\t\tCOMBINE_HIDPI_IMAGES = YES; \t\t\t\tCURRENT_PROJECT_VERSION = 1; \t\t\t\tDEAD_CODE_STRIPPING = YES; \t\t\t\tDEVELOPMENT_TEAM = ""; \t\t\t\tENABLE_HARDENED_RUNTIME = YES; \t\t\t\tGENERATE_INFOPLIST_FILE = NO; \t\t\t\tINFOPLIST_FILE = \(name)/Info.plist; \t\t\t\tLD_RUNPATH_SEARCH_PATHS = ( \t\t\t\t\t"$(inherited)", \t\t\t\t\t"@executable_path/../Frameworks", \t\t\t\t); \t\t\t\tMACOSX_DEPLOYMENT_TARGET = 15.0; \t\t\t\tMARKETING_VERSION = 1.0; \t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \(hostBundleID); \t\t\t\tPRODUCT_NAME = "$(TARGET_NAME)"; \t\t\t\tSWIFT_VERSION = 6.0; \t\t\t}; \t\t\tname = Release; \t\t}; \t\t\(pbxExtDebugConfig) /* Debug */ = { \t\t\tisa = XCBuildConfiguration; \t\t\tbuildSettings = { \t\t\t\tCODE_SIGN_ENTITLEMENTS = \(name)Extension/\(name)Extension.entitlements; \t\t\t\tCODE_SIGN_STYLE = Automatic; \t\t\t\tCURRENT_PROJECT_VERSION = 1; \t\t\t\tDEAD_CODE_STRIPPING = YES; \t\t\t\tDEVELOPMENT_TEAM = ""; \t\t\t\tENABLE_HARDENED_RUNTIME = YES; \t\t\t\tGENERATE_INFOPLIST_FILE = NO; \t\t\t\tINFOPLIST_FILE = \(name)Extension/Info.plist; \t\t\t\tLD_RUNPATH_SEARCH_PATHS = ( \t\t\t\t\t"$(inherited)", \t\t\t\t\t"@executable_path/../Frameworks", \t\t\t\t\t"@executable_path/../../../../Frameworks", \t\t\t\t); \t\t\t\tMACOSX_DEPLOYMENT_TARGET = 15.0; \t\t\t\tMARKETING_VERSION = 1.0; \t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \(extBundleID); \t\t\t\tPRODUCT_NAME = "$(TARGET_NAME)"; \t\t\t\tSKIP_INSTALL = YES; \t\t\t\tSWIFT_VERSION = 6.0; \t\t\t}; \t\t\tname = Debug; \t\t}; \t\t\(pbxExtReleaseConfig) /* Release */ = { \t\t\tisa = XCBuildConfiguration; \t\t\tbuildSettings = { \t\t\t\tCODE_SIGN_ENTITLEMENTS = \(name)Extension/\(name)Extension.entitlements; \t\t\t\tCODE_SIGN_STYLE = Automatic; \t\t\t\tCURRENT_PROJECT_VERSION = 1; \t\t\t\tDEAD_CODE_STRIPPING = YES; \t\t\t\tDEVELOPMENT_TEAM = ""; \t\t\t\tENABLE_HARDENED_RUNTIME = YES; \t\t\t\tGENERATE_INFOPLIST_FILE = NO; \t\t\t\tINFOPLIST_FILE = \(name)Extension/Info.plist; \t\t\t\tLD_RUNPATH_SEARCH_PATHS = ( \t\t\t\t\t"$(inherited)", \t\t\t\t\t"@executable_path/../Frameworks", \t\t\t\t\t"@executable_path/../../../../Frameworks", \t\t\t\t); \t\t\t\tMACOSX_DEPLOYMENT_TARGET = 15.0; \t\t\t\tMARKETING_VERSION = 1.0; \t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \(extBundleID); \t\t\t\tPRODUCT_NAME = "$(TARGET_NAME)"; \t\t\t\tSKIP_INSTALL = YES; \t\t\t\tSWIFT_VERSION = 6.0; \t\t\t}; \t\t\tname = Release; \t\t}; \t\t\(pbxProjectDebugConfig) /* Debug */ = { \t\t\tisa = XCBuildConfiguration; \t\t\tbuildSettings = { \t\t\t\tALWAYS_SEARCH_USER_PATHS = NO; \t\t\t\tCLANG_ENABLE_OBJC_ARC = YES; \t\t\t\tCOPY_PHASE_STRIP = NO; \t\t\t\tDEAD_CODE_STRIPPING = YES; \t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf; \t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES; \t\t\t\tENABLE_TESTABILITY = YES; \t\t\t\tENABLE_USER_SCRIPT_SANDBOXING = YES; \t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu17; \t\t\t\tGCC_NO_COMMON_BLOCKS = YES; \t\t\t\tGCC_OPTIMIZATION_LEVEL = 0; \t\t\t\tONLY_ACTIVE_ARCH = YES; \t\t\t\tSDKROOT = macosx; \t\t\t\tSWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; \t\t\t\tSWIFT_OPTIMIZATION_LEVEL = "-Onone"; \t\t\t}; \t\t\tname = Debug; \t\t}; \t\t\(pbxProjectReleaseConfig) /* Release */ = { \t\t\tisa = XCBuildConfiguration; \t\t\tbuildSettings = { \t\t\t\tALWAYS_SEARCH_USER_PATHS = NO; \t\t\t\tCLANG_ENABLE_OBJC_ARC = YES; \t\t\t\tCOPY_PHASE_STRIP = NO; \t\t\t\tDEAD_CODE_STRIPPING = YES; \t\t\t\tDEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; \t\t\t\tENABLE_NS_ASSERTIONS = NO; \t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES; \t\t\t\tENABLE_USER_SCRIPT_SANDBOXING = YES; \t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu17; \t\t\t\tGCC_NO_COMMON_BLOCKS = YES; \t\t\t\tSDKROOT = macosx; \t\t\t\tSWIFT_COMPILATION_MODE = wholemodule; \t\t\t\tSWIFT_OPTIMIZATION_LEVEL = "-O"; \t\t\t}; \t\t\tname = Release; \t\t}; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ \t\t\(pbxAppBuildConfigList) /* Build configuration list for PBXNativeTarget "\(name)" */ = { \t\t\tisa = XCConfigurationList; \t\t\tbuildConfigurations = ( \t\t\t\t\(pbxAppDebugConfig) /* Debug */, \t\t\t\t\(pbxAppReleaseConfig) /* Release */, \t\t\t); \t\t\tdefaultConfigurationIsVisible = 0; \t\t\tdefaultConfigurationName = Release; \t\t}; \t\t\(pbxExtBuildConfigList) /* Build configuration list for PBXNativeTarget "\(name)Extension" */ = { \t\t\tisa = XCConfigurationList; \t\t\tbuildConfigurations = ( \t\t\t\t\(pbxExtDebugConfig) /* Debug */, \t\t\t\t\(pbxExtReleaseConfig) /* Release */, \t\t\t); \t\t\tdefaultConfigurationIsVisible = 0; \t\t\tdefaultConfigurationName = Release; \t\t}; \t\t\(pbxProjectBuildConfigList) /* Build configuration list for PBXProject "\(name)" */ = { \t\t\tisa = XCConfigurationList; \t\t\tbuildConfigurations = ( \t\t\t\t\(pbxProjectDebugConfig) /* Debug */, \t\t\t\t\(pbxProjectReleaseConfig) /* Release */, \t\t\t); \t\t\tdefaultConfigurationIsVisible = 0; \t\t\tdefaultConfigurationName = Release; \t\t}; /* End XCConfigurationList section */ \(packageRefSection) /* Begin XCSwiftPackageProductDependency section */ \t\t\(pbxLyrebirdUIProductDep) /* LyrebirdUI */ = { \t\t\tisa = XCSwiftPackageProductDependency; \t\t\tpackage = \(pbxRemoteSPMRef) /* \(packageRefLabel) */; \t\t\tproductName = LyrebirdUI; \t\t}; /* End XCSwiftPackageProductDependency section */ \t}; \trootObject = \(pbxRootObject) /* Project object */; } """ } }