Skip to content

Commit 1585e0f

Browse files
dadachiclaude
andcommitted
Make default scheme shared so generated projects ship with one
Move NativeAppTemplate.xcscheme from xcuserdata/<user>/xcschemes/ to xcshareddata/xcschemes/. xcuserdata is gitignored (correctly — it holds per-developer Xcode state) which means anyone cloning fresh opens the project without a scheme until Xcode auto-creates a default one. The auto-default omits the run-time environment variable injection (NATIVEAPPTEMPLATE_API_DOMAIN etc.) the substrate relies on, so the app falls back to api.nativeapptemplate.com and dev workflows break silently. Shared schemes are conventional for any project meant to be cloned by others — no per-user state in the file, just the build/run/test configuration. Promoting the default scheme costs nothing and makes the substrate work out-of-the-box for fresh clones, including the nativeapptemplate-agent code generator's ./out/<slug>/ios/ outputs (the agent's iOS worker copies the substrate but skips xcuserdata; it does NOT skip xcshareddata, so the moved scheme rides along). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 31c7d4f commit 1585e0f

1 file changed

Lines changed: 112 additions & 0 deletions

File tree

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "2630"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "011F6DEC259EF16400BED22E"
18+
BuildableName = "NativeAppTemplate.app"
19+
BlueprintName = "NativeAppTemplate"
20+
ReferencedContainer = "container:NativeAppTemplate.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
<TestableReference
32+
skipped = "NO"
33+
parallelizable = "YES">
34+
<BuildableReference
35+
BuildableIdentifier = "primary"
36+
BlueprintIdentifier = "01D19B422D4DE33500BDEAB7"
37+
BuildableName = "NativeAppTemplateTests.xctest"
38+
BlueprintName = "NativeAppTemplateTests"
39+
ReferencedContainer = "container:NativeAppTemplate.xcodeproj">
40+
</BuildableReference>
41+
</TestableReference>
42+
</Testables>
43+
</TestAction>
44+
<LaunchAction
45+
buildConfiguration = "Debug"
46+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
47+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
48+
launchStyle = "0"
49+
useCustomWorkingDirectory = "NO"
50+
ignoresPersistentStateOnLaunch = "NO"
51+
debugDocumentVersioning = "YES"
52+
debugServiceExtension = "internal"
53+
allowLocationSimulation = "YES">
54+
<BuildableProductRunnable
55+
runnableDebuggingMode = "0">
56+
<BuildableReference
57+
BuildableIdentifier = "primary"
58+
BlueprintIdentifier = "011F6DEC259EF16400BED22E"
59+
BuildableName = "NativeAppTemplate.app"
60+
BlueprintName = "NativeAppTemplate"
61+
ReferencedContainer = "container:NativeAppTemplate.xcodeproj">
62+
</BuildableReference>
63+
</BuildableProductRunnable>
64+
<CommandLineArguments>
65+
<CommandLineArgument
66+
argument = "shopkeeperBackdoorToken FILL_THIS_IN"
67+
isEnabled = "NO">
68+
</CommandLineArgument>
69+
</CommandLineArguments>
70+
<EnvironmentVariables>
71+
<EnvironmentVariable
72+
key = "NATIVEAPPTEMPLATE_API_SCHEME"
73+
value = "http"
74+
isEnabled = "YES">
75+
</EnvironmentVariable>
76+
<EnvironmentVariable
77+
key = "NATIVEAPPTEMPLATE_API_DOMAIN"
78+
value = "192.168.1.11"
79+
isEnabled = "YES">
80+
</EnvironmentVariable>
81+
<EnvironmentVariable
82+
key = "NATIVEAPPTEMPLATE_API_PORT"
83+
value = "3000"
84+
isEnabled = "YES">
85+
</EnvironmentVariable>
86+
</EnvironmentVariables>
87+
</LaunchAction>
88+
<ProfileAction
89+
buildConfiguration = "Release"
90+
shouldUseLaunchSchemeArgsEnv = "YES"
91+
savedToolIdentifier = ""
92+
useCustomWorkingDirectory = "NO"
93+
debugDocumentVersioning = "YES">
94+
<BuildableProductRunnable
95+
runnableDebuggingMode = "0">
96+
<BuildableReference
97+
BuildableIdentifier = "primary"
98+
BlueprintIdentifier = "011F6DEC259EF16400BED22E"
99+
BuildableName = "NativeAppTemplate.app"
100+
BlueprintName = "NativeAppTemplate"
101+
ReferencedContainer = "container:NativeAppTemplate.xcodeproj">
102+
</BuildableReference>
103+
</BuildableProductRunnable>
104+
</ProfileAction>
105+
<AnalyzeAction
106+
buildConfiguration = "Debug">
107+
</AnalyzeAction>
108+
<ArchiveAction
109+
buildConfiguration = "Release"
110+
revealArchiveInOrganizer = "YES">
111+
</ArchiveAction>
112+
</Scheme>

0 commit comments

Comments
 (0)