дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-04 09:11:10 +02:00
File > New Project could only create SwiftPM packages. A new Xcode Project entry (Swift group; also found by iOS, macOS, App, SwiftUI or Xcode) opens a chooser modelled on Xcode's template sheet: platform tabs (Multiplatform, iOS, macOS), a filter and template tiles under Application and Framework & Library, then an options page (Product Name, Team, Organization Identifier, read-only Bundle Identifier preview, Interface, Language, Testing System). The App and Framework templates are generator definitions that write a minimal Xcode 16 project with synchronized folders and a shared scheme, so no XcodeGen or Tuist is needed and the existing scheme, simulator, run and test support takes over when it opens. The entry shows the installed Xcode's own icon, rendered at runtime, or a bundled glyph without Xcode.
Scaffold gains {{#if field=value}} blocks, c99 / bundle filters, generator platforms / section / name-pattern and readonly / remember fields. Template tree tests skip the generator's tool requirements so they run without Xcode.
Closes #7393
Co-authored-by: wildcatDownstairs <[email protected]>
1053 рядки
31 KiB
TOML
1053 рядки
31 KiB
TOML
id = "apple-app"
|
|
name = "App"
|
|
group = "Swift"
|
|
icon = "project-apple-app"
|
|
description = "A SwiftUI app in an Xcode project."
|
|
platforms = ["multiplatform", "ios", "macos"]
|
|
section = "Application"
|
|
# Xcode's product names: letters, digits, spaces, hyphens and underscores.
|
|
name-pattern = '^[\p{L}\p{N}_][\p{L}\p{N}_ -]*$'
|
|
|
|
[[requires]]
|
|
program = "xcodebuild"
|
|
version-args = ["-version"]
|
|
min = "16.0"
|
|
hint = "Install Xcode 16 or later from the App Store, then run xcode-select -s /Applications/Xcode.app."
|
|
|
|
[[fields]]
|
|
id = "team"
|
|
label = "Team:"
|
|
type = "text"
|
|
pattern = '^([A-Z0-9]{10})?$'
|
|
placeholder = "None"
|
|
hint = "The Team ID to sign with; empty signs to run locally."
|
|
remember = true
|
|
|
|
[[fields]]
|
|
id = "org"
|
|
label = "Organization Identifier:"
|
|
type = "text"
|
|
pattern = '^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*$'
|
|
default = "com.example"
|
|
remember = true
|
|
|
|
[[fields]]
|
|
id = "bundle"
|
|
label = "Bundle Identifier:"
|
|
type = "text"
|
|
readonly = true
|
|
default = "{{org}}.{{name|bundle}}"
|
|
|
|
[[fields]]
|
|
id = "interface"
|
|
label = "Interface:"
|
|
type = "choice"
|
|
segmented = true
|
|
options = ["SwiftUI"]
|
|
default = "SwiftUI"
|
|
|
|
[[fields]]
|
|
id = "language"
|
|
label = "Language:"
|
|
type = "choice"
|
|
segmented = true
|
|
options = ["Swift"]
|
|
default = "Swift"
|
|
|
|
[[fields]]
|
|
id = "testing"
|
|
label = "Testing System:"
|
|
type = "choice"
|
|
options = [
|
|
{ value = "swift-testing", label = "Swift Testing with XCTest UI Tests" },
|
|
{ value = "xctest", label = "XCTest for Unit and UI Tests" },
|
|
{ value = "none", label = "None" },
|
|
]
|
|
default = "swift-testing"
|
|
|
|
[[files]]
|
|
path = "{{name}}/{{name|c99}}App.swift"
|
|
content = '''
|
|
import SwiftUI
|
|
|
|
@main
|
|
struct {{name|c99}}App: App {
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
ContentView()
|
|
}
|
|
}
|
|
}
|
|
'''
|
|
|
|
[[files]]
|
|
path = "{{name}}/ContentView.swift"
|
|
content = '''
|
|
import SwiftUI
|
|
|
|
struct ContentView: View {
|
|
var body: some View {
|
|
VStack {
|
|
Image(systemName: "globe")
|
|
.imageScale(.large)
|
|
.foregroundStyle(.tint)
|
|
Text("Hello, world!")
|
|
}
|
|
.padding()
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
ContentView()
|
|
}
|
|
'''
|
|
|
|
[[files]]
|
|
path = "{{name}}/{{name}}.entitlements"
|
|
when = { platform = ["macos", "multiplatform"] }
|
|
content = '''
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
<plist version="1.0">
|
|
<dict>
|
|
<key>com.apple.security.app-sandbox</key>
|
|
<true/>
|
|
<key>com.apple.security.files.user-selected.read-only</key>
|
|
<true/>
|
|
</dict>
|
|
</plist>
|
|
'''
|
|
|
|
[[files]]
|
|
path = "{{name}}/Assets.xcassets/Contents.json"
|
|
content = '''
|
|
{
|
|
"info" : {
|
|
"author" : "xcode",
|
|
"version" : 1
|
|
}
|
|
}
|
|
'''
|
|
|
|
[[files]]
|
|
path = "{{name}}/Assets.xcassets/AccentColor.colorset/Contents.json"
|
|
content = '''
|
|
{
|
|
"colors" : [
|
|
{
|
|
"idiom" : "universal"
|
|
}
|
|
],
|
|
"info" : {
|
|
"author" : "xcode",
|
|
"version" : 1
|
|
}
|
|
}
|
|
'''
|
|
|
|
[[files]]
|
|
path = "{{name}}/Assets.xcassets/AppIcon.appiconset/Contents.json"
|
|
content = '''
|
|
{
|
|
"images" : [
|
|
{{#if platform!=macos}}
|
|
{
|
|
"idiom" : "universal",
|
|
"platform" : "ios",
|
|
"size" : "1024x1024"
|
|
},
|
|
{
|
|
"appearances" : [
|
|
{
|
|
"appearance" : "luminosity",
|
|
"value" : "dark"
|
|
}
|
|
],
|
|
"idiom" : "universal",
|
|
"platform" : "ios",
|
|
"size" : "1024x1024"
|
|
},
|
|
{
|
|
"appearances" : [
|
|
{
|
|
"appearance" : "luminosity",
|
|
"value" : "tinted"
|
|
}
|
|
],
|
|
"idiom" : "universal",
|
|
"platform" : "ios",
|
|
"size" : "1024x1024"
|
|
}{{#if platform=multiplatform}},{{/if}}
|
|
{{/if}}
|
|
{{#if platform!=ios}}
|
|
{
|
|
"idiom" : "mac",
|
|
"scale" : "1x",
|
|
"size" : "16x16"
|
|
},
|
|
{
|
|
"idiom" : "mac",
|
|
"scale" : "2x",
|
|
"size" : "16x16"
|
|
},
|
|
{
|
|
"idiom" : "mac",
|
|
"scale" : "1x",
|
|
"size" : "32x32"
|
|
},
|
|
{
|
|
"idiom" : "mac",
|
|
"scale" : "2x",
|
|
"size" : "32x32"
|
|
},
|
|
{
|
|
"idiom" : "mac",
|
|
"scale" : "1x",
|
|
"size" : "128x128"
|
|
},
|
|
{
|
|
"idiom" : "mac",
|
|
"scale" : "2x",
|
|
"size" : "128x128"
|
|
},
|
|
{
|
|
"idiom" : "mac",
|
|
"scale" : "1x",
|
|
"size" : "256x256"
|
|
},
|
|
{
|
|
"idiom" : "mac",
|
|
"scale" : "2x",
|
|
"size" : "256x256"
|
|
},
|
|
{
|
|
"idiom" : "mac",
|
|
"scale" : "1x",
|
|
"size" : "512x512"
|
|
},
|
|
{
|
|
"idiom" : "mac",
|
|
"scale" : "2x",
|
|
"size" : "512x512"
|
|
}
|
|
{{/if}}
|
|
],
|
|
"info" : {
|
|
"author" : "xcode",
|
|
"version" : 1
|
|
}
|
|
}
|
|
'''
|
|
|
|
[[files]]
|
|
path = "{{name}}Tests/{{name}}Tests.swift"
|
|
when = { testing = "swift-testing" }
|
|
content = '''
|
|
import Testing
|
|
@testable import {{name|c99}}
|
|
|
|
struct {{name|c99}}Tests {
|
|
@Test func example() async throws {
|
|
// Write your test here and use APIs like `#expect(...)` to check expected conditions.
|
|
}
|
|
}
|
|
'''
|
|
|
|
[[files]]
|
|
path = "{{name}}Tests/{{name}}Tests.swift"
|
|
when = { testing = "xctest" }
|
|
content = '''
|
|
import XCTest
|
|
@testable import {{name|c99}}
|
|
|
|
final class {{name|c99}}Tests: XCTestCase {
|
|
func testExample() throws {
|
|
// Write your test here and use XCTAssert functions to check expected conditions.
|
|
}
|
|
}
|
|
'''
|
|
|
|
[[files]]
|
|
path = "{{name}}UITests/{{name}}UITests.swift"
|
|
when = { testing = ["swift-testing", "xctest"] }
|
|
content = '''
|
|
import XCTest
|
|
|
|
final class {{name|c99}}UITests: XCTestCase {
|
|
override func setUpWithError() throws {
|
|
continueAfterFailure = false
|
|
}
|
|
|
|
@MainActor
|
|
func testLaunch() throws {
|
|
let app = XCUIApplication()
|
|
app.launch()
|
|
}
|
|
}
|
|
'''
|
|
|
|
[[files]]
|
|
path = ".gitignore"
|
|
content = '''
|
|
xcuserdata/
|
|
DerivedData/
|
|
.build/
|
|
*.xcuserstate
|
|
.DS_Store
|
|
# Written by the IDE with paths of this machine.
|
|
buildServer.json
|
|
'''
|
|
|
|
[[files]]
|
|
path = "{{name}}.xcodeproj/project.xcworkspace/contents.xcworkspacedata"
|
|
content = '''
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<Workspace
|
|
version = "1.0">
|
|
<FileRef
|
|
location = "self:">
|
|
</FileRef>
|
|
</Workspace>
|
|
'''
|
|
|
|
[[files]]
|
|
path = "{{name}}.xcodeproj/xcshareddata/xcschemes/{{name}}.xcscheme"
|
|
content = '''
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<Scheme
|
|
LastUpgradeVersion = "1600"
|
|
version = "1.7">
|
|
<BuildAction
|
|
parallelizeBuildables = "YES"
|
|
buildImplicitDependencies = "YES"
|
|
buildArchitectures = "Automatic">
|
|
<BuildActionEntries>
|
|
<BuildActionEntry
|
|
buildForTesting = "YES"
|
|
buildForRunning = "YES"
|
|
buildForProfiling = "YES"
|
|
buildForArchiving = "YES"
|
|
buildForAnalyzing = "YES">
|
|
<BuildableReference
|
|
BuildableIdentifier = "primary"
|
|
BlueprintIdentifier = "1A0000000000000000000000"
|
|
BuildableName = "{{name}}.app"
|
|
BlueprintName = "{{name}}"
|
|
ReferencedContainer = "container:{{name}}.xcodeproj">
|
|
</BuildableReference>
|
|
</BuildActionEntry>
|
|
</BuildActionEntries>
|
|
</BuildAction>
|
|
<TestAction
|
|
buildConfiguration = "Debug"
|
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
|
shouldAutocreateTestPlan = "YES">
|
|
{{#if testing!=none}}
|
|
<Testables>
|
|
<TestableReference
|
|
skipped = "NO"
|
|
parallelizable = "YES">
|
|
<BuildableReference
|
|
BuildableIdentifier = "primary"
|
|
BlueprintIdentifier = "2A0000000000000000000000"
|
|
BuildableName = "{{name}}Tests.xctest"
|
|
BlueprintName = "{{name}}Tests"
|
|
ReferencedContainer = "container:{{name}}.xcodeproj">
|
|
</BuildableReference>
|
|
</TestableReference>
|
|
<TestableReference
|
|
skipped = "NO"
|
|
parallelizable = "YES">
|
|
<BuildableReference
|
|
BuildableIdentifier = "primary"
|
|
BlueprintIdentifier = "3A0000000000000000000000"
|
|
BuildableName = "{{name}}UITests.xctest"
|
|
BlueprintName = "{{name}}UITests"
|
|
ReferencedContainer = "container:{{name}}.xcodeproj">
|
|
</BuildableReference>
|
|
</TestableReference>
|
|
</Testables>
|
|
{{/if}}
|
|
</TestAction>
|
|
<LaunchAction
|
|
buildConfiguration = "Debug"
|
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
launchStyle = "0"
|
|
useCustomWorkingDirectory = "NO"
|
|
ignoresPersistentStateOnLaunch = "NO"
|
|
debugDocumentVersioning = "YES"
|
|
debugServiceExtension = "internal"
|
|
allowLocationSimulation = "YES">
|
|
<BuildableProductRunnable
|
|
runnableDebuggingMode = "0">
|
|
<BuildableReference
|
|
BuildableIdentifier = "primary"
|
|
BlueprintIdentifier = "1A0000000000000000000000"
|
|
BuildableName = "{{name}}.app"
|
|
BlueprintName = "{{name}}"
|
|
ReferencedContainer = "container:{{name}}.xcodeproj">
|
|
</BuildableReference>
|
|
</BuildableProductRunnable>
|
|
</LaunchAction>
|
|
<ProfileAction
|
|
buildConfiguration = "Release"
|
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
|
savedToolIdentifier = ""
|
|
useCustomWorkingDirectory = "NO"
|
|
debugDocumentVersioning = "YES">
|
|
<BuildableProductRunnable
|
|
runnableDebuggingMode = "0">
|
|
<BuildableReference
|
|
BuildableIdentifier = "primary"
|
|
BlueprintIdentifier = "1A0000000000000000000000"
|
|
BuildableName = "{{name}}.app"
|
|
BlueprintName = "{{name}}"
|
|
ReferencedContainer = "container:{{name}}.xcodeproj">
|
|
</BuildableReference>
|
|
</BuildableProductRunnable>
|
|
</ProfileAction>
|
|
<AnalyzeAction
|
|
buildConfiguration = "Debug">
|
|
</AnalyzeAction>
|
|
<ArchiveAction
|
|
buildConfiguration = "Release"
|
|
revealArchiveInOrganizer = "YES">
|
|
</ArchiveAction>
|
|
</Scheme>
|
|
'''
|
|
|
|
# Object ids: 0A… the project, 1A… the app target, 2A… unit tests, 3A… UI tests.
|
|
[[files]]
|
|
path = "{{name}}.xcodeproj/project.pbxproj"
|
|
content = '''
|
|
// !$*UTF8*$!
|
|
{
|
|
archiveVersion = 1;
|
|
classes = {
|
|
};
|
|
objectVersion = 77;
|
|
objects = {
|
|
|
|
{{#if testing!=none}}
|
|
/* Begin PBXContainerItemProxy section */
|
|
2A0000000000000000000001 /* PBXContainerItemProxy */ = {
|
|
isa = PBXContainerItemProxy;
|
|
containerPortal = 0A0000000000000000000000 /* Project object */;
|
|
proxyType = 1;
|
|
remoteGlobalIDString = 1A0000000000000000000000;
|
|
remoteInfo = "{{name}}";
|
|
};
|
|
3A0000000000000000000001 /* PBXContainerItemProxy */ = {
|
|
isa = PBXContainerItemProxy;
|
|
containerPortal = 0A0000000000000000000000 /* Project object */;
|
|
proxyType = 1;
|
|
remoteGlobalIDString = 1A0000000000000000000000;
|
|
remoteInfo = "{{name}}";
|
|
};
|
|
/* End PBXContainerItemProxy section */
|
|
|
|
{{/if}}
|
|
/* Begin PBXFileReference section */
|
|
1A0000000000000000000002 /* {{name}}.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "{{name}}.app"; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
{{#if testing!=none}}
|
|
2A0000000000000000000002 /* {{name}}Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "{{name}}Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
3A0000000000000000000002 /* {{name}}UITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "{{name}}UITests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
{{/if}}
|
|
/* End PBXFileReference section */
|
|
|
|
/* Begin PBXFileSystemSynchronizedRootGroup section */
|
|
1A0000000000000000000003 /* {{name}} */ = {
|
|
isa = PBXFileSystemSynchronizedRootGroup;
|
|
path = "{{name}}";
|
|
sourceTree = "<group>";
|
|
};
|
|
{{#if testing!=none}}
|
|
2A0000000000000000000003 /* {{name}}Tests */ = {
|
|
isa = PBXFileSystemSynchronizedRootGroup;
|
|
path = "{{name}}Tests";
|
|
sourceTree = "<group>";
|
|
};
|
|
3A0000000000000000000003 /* {{name}}UITests */ = {
|
|
isa = PBXFileSystemSynchronizedRootGroup;
|
|
path = "{{name}}UITests";
|
|
sourceTree = "<group>";
|
|
};
|
|
{{/if}}
|
|
/* End PBXFileSystemSynchronizedRootGroup section */
|
|
|
|
/* Begin PBXFrameworksBuildPhase section */
|
|
1A0000000000000000000004 /* Frameworks */ = {
|
|
isa = PBXFrameworksBuildPhase;
|
|
buildActionMask = 2147483647;
|
|
files = (
|
|
);
|
|
runOnlyForDeploymentPostprocessing = 0;
|
|
};
|
|
{{#if testing!=none}}
|
|
2A0000000000000000000004 /* Frameworks */ = {
|
|
isa = PBXFrameworksBuildPhase;
|
|
buildActionMask = 2147483647;
|
|
files = (
|
|
);
|
|
runOnlyForDeploymentPostprocessing = 0;
|
|
};
|
|
3A0000000000000000000004 /* Frameworks */ = {
|
|
isa = PBXFrameworksBuildPhase;
|
|
buildActionMask = 2147483647;
|
|
files = (
|
|
);
|
|
runOnlyForDeploymentPostprocessing = 0;
|
|
};
|
|
{{/if}}
|
|
/* End PBXFrameworksBuildPhase section */
|
|
|
|
/* Begin PBXGroup section */
|
|
0A0000000000000000000004 = {
|
|
isa = PBXGroup;
|
|
children = (
|
|
1A0000000000000000000003 /* {{name}} */,
|
|
{{#if testing!=none}}
|
|
2A0000000000000000000003 /* {{name}}Tests */,
|
|
3A0000000000000000000003 /* {{name}}UITests */,
|
|
{{/if}}
|
|
0A0000000000000000000005 /* Products */,
|
|
);
|
|
sourceTree = "<group>";
|
|
};
|
|
0A0000000000000000000005 /* Products */ = {
|
|
isa = PBXGroup;
|
|
children = (
|
|
1A0000000000000000000002 /* {{name}}.app */,
|
|
{{#if testing!=none}}
|
|
2A0000000000000000000002 /* {{name}}Tests.xctest */,
|
|
3A0000000000000000000002 /* {{name}}UITests.xctest */,
|
|
{{/if}}
|
|
);
|
|
name = Products;
|
|
sourceTree = "<group>";
|
|
};
|
|
/* End PBXGroup section */
|
|
|
|
/* Begin PBXNativeTarget section */
|
|
1A0000000000000000000000 /* {{name}} */ = {
|
|
isa = PBXNativeTarget;
|
|
buildConfigurationList = 1A0000000000000000000005 /* Build configuration list for PBXNativeTarget "{{name}}" */;
|
|
buildPhases = (
|
|
1A0000000000000000000006 /* Sources */,
|
|
1A0000000000000000000004 /* Frameworks */,
|
|
1A0000000000000000000007 /* Resources */,
|
|
);
|
|
buildRules = (
|
|
);
|
|
dependencies = (
|
|
);
|
|
fileSystemSynchronizedGroups = (
|
|
1A0000000000000000000003 /* {{name}} */,
|
|
);
|
|
name = "{{name}}";
|
|
packageProductDependencies = (
|
|
);
|
|
productName = "{{name}}";
|
|
productReference = 1A0000000000000000000002 /* {{name}}.app */;
|
|
productType = "com.apple.product-type.application";
|
|
};
|
|
{{#if testing!=none}}
|
|
2A0000000000000000000000 /* {{name}}Tests */ = {
|
|
isa = PBXNativeTarget;
|
|
buildConfigurationList = 2A0000000000000000000005 /* Build configuration list for PBXNativeTarget "{{name}}Tests" */;
|
|
buildPhases = (
|
|
2A0000000000000000000006 /* Sources */,
|
|
2A0000000000000000000004 /* Frameworks */,
|
|
2A0000000000000000000007 /* Resources */,
|
|
);
|
|
buildRules = (
|
|
);
|
|
dependencies = (
|
|
2A000000000000000000000B /* PBXTargetDependency */,
|
|
);
|
|
fileSystemSynchronizedGroups = (
|
|
2A0000000000000000000003 /* {{name}}Tests */,
|
|
);
|
|
name = "{{name}}Tests";
|
|
packageProductDependencies = (
|
|
);
|
|
productName = "{{name}}Tests";
|
|
productReference = 2A0000000000000000000002 /* {{name}}Tests.xctest */;
|
|
productType = "com.apple.product-type.bundle.unit-test";
|
|
};
|
|
3A0000000000000000000000 /* {{name}}UITests */ = {
|
|
isa = PBXNativeTarget;
|
|
buildConfigurationList = 3A0000000000000000000005 /* Build configuration list for PBXNativeTarget "{{name}}UITests" */;
|
|
buildPhases = (
|
|
3A0000000000000000000006 /* Sources */,
|
|
3A0000000000000000000004 /* Frameworks */,
|
|
3A0000000000000000000007 /* Resources */,
|
|
);
|
|
buildRules = (
|
|
);
|
|
dependencies = (
|
|
3A000000000000000000000B /* PBXTargetDependency */,
|
|
);
|
|
fileSystemSynchronizedGroups = (
|
|
3A0000000000000000000003 /* {{name}}UITests */,
|
|
);
|
|
name = "{{name}}UITests";
|
|
packageProductDependencies = (
|
|
);
|
|
productName = "{{name}}UITests";
|
|
productReference = 3A0000000000000000000002 /* {{name}}UITests.xctest */;
|
|
productType = "com.apple.product-type.bundle.ui-testing";
|
|
};
|
|
{{/if}}
|
|
/* End PBXNativeTarget section */
|
|
|
|
/* Begin PBXProject section */
|
|
0A0000000000000000000000 /* Project object */ = {
|
|
isa = PBXProject;
|
|
attributes = {
|
|
BuildIndependentTargetsInParallel = 1;
|
|
LastSwiftUpdateCheck = 1600;
|
|
LastUpgradeCheck = 1600;
|
|
TargetAttributes = {
|
|
1A0000000000000000000000 = {
|
|
CreatedOnToolsVersion = 16.0;
|
|
};
|
|
{{#if testing!=none}}
|
|
2A0000000000000000000000 = {
|
|
CreatedOnToolsVersion = 16.0;
|
|
TestTargetID = 1A0000000000000000000000;
|
|
};
|
|
3A0000000000000000000000 = {
|
|
CreatedOnToolsVersion = 16.0;
|
|
TestTargetID = 1A0000000000000000000000;
|
|
};
|
|
{{/if}}
|
|
};
|
|
};
|
|
buildConfigurationList = 0A0000000000000000000001 /* Build configuration list for PBXProject "{{name}}" */;
|
|
developmentRegion = en;
|
|
hasScannedForEncodings = 0;
|
|
knownRegions = (
|
|
en,
|
|
Base,
|
|
);
|
|
mainGroup = 0A0000000000000000000004;
|
|
minimizedProjectReferenceProxies = 1;
|
|
preferredProjectObjectVersion = 77;
|
|
productRefGroup = 0A0000000000000000000005 /* Products */;
|
|
projectDirPath = "";
|
|
projectRoot = "";
|
|
targets = (
|
|
1A0000000000000000000000 /* {{name}} */,
|
|
{{#if testing!=none}}
|
|
2A0000000000000000000000 /* {{name}}Tests */,
|
|
3A0000000000000000000000 /* {{name}}UITests */,
|
|
{{/if}}
|
|
);
|
|
};
|
|
/* End PBXProject section */
|
|
|
|
/* Begin PBXResourcesBuildPhase section */
|
|
1A0000000000000000000007 /* Resources */ = {
|
|
isa = PBXResourcesBuildPhase;
|
|
buildActionMask = 2147483647;
|
|
files = (
|
|
);
|
|
runOnlyForDeploymentPostprocessing = 0;
|
|
};
|
|
{{#if testing!=none}}
|
|
2A0000000000000000000007 /* Resources */ = {
|
|
isa = PBXResourcesBuildPhase;
|
|
buildActionMask = 2147483647;
|
|
files = (
|
|
);
|
|
runOnlyForDeploymentPostprocessing = 0;
|
|
};
|
|
3A0000000000000000000007 /* Resources */ = {
|
|
isa = PBXResourcesBuildPhase;
|
|
buildActionMask = 2147483647;
|
|
files = (
|
|
);
|
|
runOnlyForDeploymentPostprocessing = 0;
|
|
};
|
|
{{/if}}
|
|
/* End PBXResourcesBuildPhase section */
|
|
|
|
/* Begin PBXSourcesBuildPhase section */
|
|
1A0000000000000000000006 /* Sources */ = {
|
|
isa = PBXSourcesBuildPhase;
|
|
buildActionMask = 2147483647;
|
|
files = (
|
|
);
|
|
runOnlyForDeploymentPostprocessing = 0;
|
|
};
|
|
{{#if testing!=none}}
|
|
2A0000000000000000000006 /* Sources */ = {
|
|
isa = PBXSourcesBuildPhase;
|
|
buildActionMask = 2147483647;
|
|
files = (
|
|
);
|
|
runOnlyForDeploymentPostprocessing = 0;
|
|
};
|
|
3A0000000000000000000006 /* Sources */ = {
|
|
isa = PBXSourcesBuildPhase;
|
|
buildActionMask = 2147483647;
|
|
files = (
|
|
);
|
|
runOnlyForDeploymentPostprocessing = 0;
|
|
};
|
|
{{/if}}
|
|
/* End PBXSourcesBuildPhase section */
|
|
|
|
{{#if testing!=none}}
|
|
/* Begin PBXTargetDependency section */
|
|
2A000000000000000000000B /* PBXTargetDependency */ = {
|
|
isa = PBXTargetDependency;
|
|
target = 1A0000000000000000000000 /* {{name}} */;
|
|
targetProxy = 2A0000000000000000000001 /* PBXContainerItemProxy */;
|
|
};
|
|
3A000000000000000000000B /* PBXTargetDependency */ = {
|
|
isa = PBXTargetDependency;
|
|
target = 1A0000000000000000000000 /* {{name}} */;
|
|
targetProxy = 3A0000000000000000000001 /* PBXContainerItemProxy */;
|
|
};
|
|
/* End PBXTargetDependency section */
|
|
|
|
{{/if}}
|
|
/* Begin XCBuildConfiguration section */
|
|
0A0000000000000000000002 /* Debug */ = {
|
|
isa = XCBuildConfiguration;
|
|
buildSettings = {
|
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
|
|
CLANG_ENABLE_MODULES = YES;
|
|
CLANG_ENABLE_OBJC_ARC = YES;
|
|
COPY_PHASE_STRIP = NO;
|
|
DEBUG_INFORMATION_FORMAT = dwarf;
|
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
ENABLE_TESTABILITY = YES;
|
|
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
|
GCC_C_LANGUAGE_STANDARD = gnu17;
|
|
GCC_OPTIMIZATION_LEVEL = 0;
|
|
GCC_PREPROCESSOR_DEFINITIONS = (
|
|
"DEBUG=1",
|
|
"$(inherited)",
|
|
);
|
|
{{#if platform!=macos}}
|
|
IPHONEOS_DEPLOYMENT_TARGET = 18.0;
|
|
{{/if}}
|
|
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
|
|
{{#if platform!=ios}}
|
|
MACOSX_DEPLOYMENT_TARGET = 15.0;
|
|
{{/if}}
|
|
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
|
|
ONLY_ACTIVE_ARCH = YES;
|
|
{{#if platform=ios}}
|
|
SDKROOT = iphoneos;
|
|
TARGETED_DEVICE_FAMILY = "1,2";
|
|
{{/if}}
|
|
{{#if platform=macos}}
|
|
SDKROOT = macosx;
|
|
{{/if}}
|
|
{{#if platform=multiplatform}}
|
|
SDKROOT = auto;
|
|
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx";
|
|
SUPPORTS_MACCATALYST = NO;
|
|
TARGETED_DEVICE_FAMILY = "1,2";
|
|
{{/if}}
|
|
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
|
|
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
|
};
|
|
name = Debug;
|
|
};
|
|
0A0000000000000000000003 /* Release */ = {
|
|
isa = XCBuildConfiguration;
|
|
buildSettings = {
|
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
|
|
CLANG_ENABLE_MODULES = YES;
|
|
CLANG_ENABLE_OBJC_ARC = YES;
|
|
COPY_PHASE_STRIP = NO;
|
|
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
|
ENABLE_NS_ASSERTIONS = NO;
|
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
|
GCC_C_LANGUAGE_STANDARD = gnu17;
|
|
{{#if platform!=macos}}
|
|
IPHONEOS_DEPLOYMENT_TARGET = 18.0;
|
|
{{/if}}
|
|
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
|
|
{{#if platform!=ios}}
|
|
MACOSX_DEPLOYMENT_TARGET = 15.0;
|
|
{{/if}}
|
|
MTL_ENABLE_DEBUG_INFO = NO;
|
|
{{#if platform=ios}}
|
|
SDKROOT = iphoneos;
|
|
TARGETED_DEVICE_FAMILY = "1,2";
|
|
VALIDATE_PRODUCT = YES;
|
|
{{/if}}
|
|
{{#if platform=macos}}
|
|
SDKROOT = macosx;
|
|
{{/if}}
|
|
{{#if platform=multiplatform}}
|
|
SDKROOT = auto;
|
|
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx";
|
|
SUPPORTS_MACCATALYST = NO;
|
|
TARGETED_DEVICE_FAMILY = "1,2";
|
|
{{/if}}
|
|
SWIFT_COMPILATION_MODE = wholemodule;
|
|
};
|
|
name = Release;
|
|
};
|
|
1A0000000000000000000008 /* Debug */ = {
|
|
isa = XCBuildConfiguration;
|
|
buildSettings = {
|
|
{{#if platform=ios}}
|
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
|
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
|
CODE_SIGN_STYLE = Automatic;
|
|
CURRENT_PROJECT_VERSION = 1;
|
|
DEVELOPMENT_TEAM = "{{team}}";
|
|
ENABLE_PREVIEWS = YES;
|
|
GENERATE_INFOPLIST_FILE = YES;
|
|
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
|
|
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
|
|
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
|
|
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
|
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
|
LD_RUNPATH_SEARCH_PATHS = (
|
|
"$(inherited)",
|
|
"@executable_path/Frameworks",
|
|
);
|
|
{{/if}}
|
|
{{#if platform=macos}}
|
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
|
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
|
CODE_SIGN_ENTITLEMENTS = "{{name}}/{{name}}.entitlements";
|
|
CODE_SIGN_STYLE = Automatic;
|
|
COMBINE_HIDPI_IMAGES = YES;
|
|
CURRENT_PROJECT_VERSION = 1;
|
|
DEVELOPMENT_TEAM = "{{team}}";
|
|
ENABLE_HARDENED_RUNTIME = YES;
|
|
ENABLE_PREVIEWS = YES;
|
|
GENERATE_INFOPLIST_FILE = YES;
|
|
INFOPLIST_KEY_NSHumanReadableCopyright = "";
|
|
LD_RUNPATH_SEARCH_PATHS = (
|
|
"$(inherited)",
|
|
"@executable_path/../Frameworks",
|
|
);
|
|
{{/if}}
|
|
{{#if platform=multiplatform}}
|
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
|
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
|
"CODE_SIGN_ENTITLEMENTS[sdk=macosx*]" = "{{name}}/{{name}}.entitlements";
|
|
CODE_SIGN_STYLE = Automatic;
|
|
CURRENT_PROJECT_VERSION = 1;
|
|
DEVELOPMENT_TEAM = "{{team}}";
|
|
"ENABLE_HARDENED_RUNTIME[sdk=macosx*]" = YES;
|
|
ENABLE_PREVIEWS = YES;
|
|
GENERATE_INFOPLIST_FILE = YES;
|
|
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES;
|
|
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES;
|
|
"INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES;
|
|
"INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphonesimulator*]" = YES;
|
|
"INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphoneos*]" = YES;
|
|
"INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphonesimulator*]" = YES;
|
|
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
|
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
|
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
|
|
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
|
|
{{/if}}
|
|
MARKETING_VERSION = 1.0;
|
|
PRODUCT_BUNDLE_IDENTIFIER = "{{bundle}}";
|
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
SWIFT_EMIT_LOC_STRINGS = YES;
|
|
SWIFT_VERSION = 5.0;
|
|
};
|
|
name = Debug;
|
|
};
|
|
1A0000000000000000000009 /* Release */ = {
|
|
isa = XCBuildConfiguration;
|
|
buildSettings = {
|
|
{{#if platform=ios}}
|
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
|
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
|
CODE_SIGN_STYLE = Automatic;
|
|
CURRENT_PROJECT_VERSION = 1;
|
|
DEVELOPMENT_TEAM = "{{team}}";
|
|
ENABLE_PREVIEWS = YES;
|
|
GENERATE_INFOPLIST_FILE = YES;
|
|
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
|
|
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
|
|
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
|
|
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
|
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
|
LD_RUNPATH_SEARCH_PATHS = (
|
|
"$(inherited)",
|
|
"@executable_path/Frameworks",
|
|
);
|
|
{{/if}}
|
|
{{#if platform=macos}}
|
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
|
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
|
CODE_SIGN_ENTITLEMENTS = "{{name}}/{{name}}.entitlements";
|
|
CODE_SIGN_STYLE = Automatic;
|
|
COMBINE_HIDPI_IMAGES = YES;
|
|
CURRENT_PROJECT_VERSION = 1;
|
|
DEVELOPMENT_TEAM = "{{team}}";
|
|
ENABLE_HARDENED_RUNTIME = YES;
|
|
ENABLE_PREVIEWS = YES;
|
|
GENERATE_INFOPLIST_FILE = YES;
|
|
INFOPLIST_KEY_NSHumanReadableCopyright = "";
|
|
LD_RUNPATH_SEARCH_PATHS = (
|
|
"$(inherited)",
|
|
"@executable_path/../Frameworks",
|
|
);
|
|
{{/if}}
|
|
{{#if platform=multiplatform}}
|
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
|
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
|
"CODE_SIGN_ENTITLEMENTS[sdk=macosx*]" = "{{name}}/{{name}}.entitlements";
|
|
CODE_SIGN_STYLE = Automatic;
|
|
CURRENT_PROJECT_VERSION = 1;
|
|
DEVELOPMENT_TEAM = "{{team}}";
|
|
"ENABLE_HARDENED_RUNTIME[sdk=macosx*]" = YES;
|
|
ENABLE_PREVIEWS = YES;
|
|
GENERATE_INFOPLIST_FILE = YES;
|
|
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES;
|
|
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES;
|
|
"INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES;
|
|
"INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphonesimulator*]" = YES;
|
|
"INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphoneos*]" = YES;
|
|
"INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphonesimulator*]" = YES;
|
|
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
|
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
|
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
|
|
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
|
|
{{/if}}
|
|
MARKETING_VERSION = 1.0;
|
|
PRODUCT_BUNDLE_IDENTIFIER = "{{bundle}}";
|
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
SWIFT_EMIT_LOC_STRINGS = YES;
|
|
SWIFT_VERSION = 5.0;
|
|
};
|
|
name = Release;
|
|
};
|
|
{{#if testing!=none}}
|
|
2A0000000000000000000008 /* Debug */ = {
|
|
isa = XCBuildConfiguration;
|
|
buildSettings = {
|
|
BUNDLE_LOADER = "$(TEST_HOST)";
|
|
CODE_SIGN_STYLE = Automatic;
|
|
CURRENT_PROJECT_VERSION = 1;
|
|
DEVELOPMENT_TEAM = "{{team}}";
|
|
GENERATE_INFOPLIST_FILE = YES;
|
|
MARKETING_VERSION = 1.0;
|
|
PRODUCT_BUNDLE_IDENTIFIER = "{{bundle}}Tests";
|
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
SWIFT_EMIT_LOC_STRINGS = NO;
|
|
SWIFT_VERSION = 5.0;
|
|
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/{{name}}.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/{{name}}";
|
|
};
|
|
name = Debug;
|
|
};
|
|
2A0000000000000000000009 /* Release */ = {
|
|
isa = XCBuildConfiguration;
|
|
buildSettings = {
|
|
BUNDLE_LOADER = "$(TEST_HOST)";
|
|
CODE_SIGN_STYLE = Automatic;
|
|
CURRENT_PROJECT_VERSION = 1;
|
|
DEVELOPMENT_TEAM = "{{team}}";
|
|
GENERATE_INFOPLIST_FILE = YES;
|
|
MARKETING_VERSION = 1.0;
|
|
PRODUCT_BUNDLE_IDENTIFIER = "{{bundle}}Tests";
|
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
SWIFT_EMIT_LOC_STRINGS = NO;
|
|
SWIFT_VERSION = 5.0;
|
|
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/{{name}}.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/{{name}}";
|
|
};
|
|
name = Release;
|
|
};
|
|
3A0000000000000000000008 /* Debug */ = {
|
|
isa = XCBuildConfiguration;
|
|
buildSettings = {
|
|
CODE_SIGN_STYLE = Automatic;
|
|
CURRENT_PROJECT_VERSION = 1;
|
|
DEVELOPMENT_TEAM = "{{team}}";
|
|
GENERATE_INFOPLIST_FILE = YES;
|
|
MARKETING_VERSION = 1.0;
|
|
PRODUCT_BUNDLE_IDENTIFIER = "{{bundle}}UITests";
|
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
SWIFT_EMIT_LOC_STRINGS = NO;
|
|
SWIFT_VERSION = 5.0;
|
|
TEST_TARGET_NAME = "{{name}}";
|
|
};
|
|
name = Debug;
|
|
};
|
|
3A0000000000000000000009 /* Release */ = {
|
|
isa = XCBuildConfiguration;
|
|
buildSettings = {
|
|
CODE_SIGN_STYLE = Automatic;
|
|
CURRENT_PROJECT_VERSION = 1;
|
|
DEVELOPMENT_TEAM = "{{team}}";
|
|
GENERATE_INFOPLIST_FILE = YES;
|
|
MARKETING_VERSION = 1.0;
|
|
PRODUCT_BUNDLE_IDENTIFIER = "{{bundle}}UITests";
|
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
SWIFT_EMIT_LOC_STRINGS = NO;
|
|
SWIFT_VERSION = 5.0;
|
|
TEST_TARGET_NAME = "{{name}}";
|
|
};
|
|
name = Release;
|
|
};
|
|
{{/if}}
|
|
/* End XCBuildConfiguration section */
|
|
|
|
/* Begin XCConfigurationList section */
|
|
0A0000000000000000000001 /* Build configuration list for PBXProject "{{name}}" */ = {
|
|
isa = XCConfigurationList;
|
|
buildConfigurations = (
|
|
0A0000000000000000000002 /* Debug */,
|
|
0A0000000000000000000003 /* Release */,
|
|
);
|
|
defaultConfigurationIsVisible = 0;
|
|
defaultConfigurationName = Release;
|
|
};
|
|
1A0000000000000000000005 /* Build configuration list for PBXNativeTarget "{{name}}" */ = {
|
|
isa = XCConfigurationList;
|
|
buildConfigurations = (
|
|
1A0000000000000000000008 /* Debug */,
|
|
1A0000000000000000000009 /* Release */,
|
|
);
|
|
defaultConfigurationIsVisible = 0;
|
|
defaultConfigurationName = Release;
|
|
};
|
|
{{#if testing!=none}}
|
|
2A0000000000000000000005 /* Build configuration list for PBXNativeTarget "{{name}}Tests" */ = {
|
|
isa = XCConfigurationList;
|
|
buildConfigurations = (
|
|
2A0000000000000000000008 /* Debug */,
|
|
2A0000000000000000000009 /* Release */,
|
|
);
|
|
defaultConfigurationIsVisible = 0;
|
|
defaultConfigurationName = Release;
|
|
};
|
|
3A0000000000000000000005 /* Build configuration list for PBXNativeTarget "{{name}}UITests" */ = {
|
|
isa = XCConfigurationList;
|
|
buildConfigurations = (
|
|
3A0000000000000000000008 /* Debug */,
|
|
3A0000000000000000000009 /* Release */,
|
|
);
|
|
defaultConfigurationIsVisible = 0;
|
|
defaultConfigurationName = Release;
|
|
};
|
|
{{/if}}
|
|
/* End XCConfigurationList section */
|
|
};
|
|
rootObject = 0A0000000000000000000000 /* Project object */;
|
|
}
|
|
'''
|