Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate Xcode schemes #385

Merged
merged 76 commits into from
May 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
2b69a02
Switch signatures to use PBXTarget instead of PBXNativeTarget
cgrindel May 4, 2022
c9db242
Reapply changes without formatting
cgrindel May 4, 2022
d45bc0e
Add nativeTarget accessor for Dictionary with PBXTarget values
cgrindel May 4, 2022
c002512
Add filePathResolver back to addTargets
cgrindel May 4, 2022
2045f3b
Add placeholders.
cgrindel May 2, 2022
ed2c75d
Added placeholder convenience initializers for actions.
cgrindel Apr 28, 2022
a06b94f
Save work before switching to PBXTargets.
cgrindel May 4, 2022
3aba17a
Added in project.
cgrindel Apr 29, 2022
dd1bfd3
Added build action.
cgrindel Apr 29, 2022
e5678ae
Updated installer to install schemes.
cgrindel Apr 29, 2022
ea30097
Added debug prefix to scheme names.
cgrindel Apr 29, 2022
b5e05a4
Clean up.
cgrindel Apr 29, 2022
998961c
Successfully built with generated scheme.
cgrindel Apr 29, 2022
49c2630
Remove debug
cgrindel Apr 29, 2022
7f0b542
Refactored the action creation. The build and test actions appear to
cgrindel Apr 29, 2022
8aeb58f
The tool scheme appears to be correct.
cgrindel Apr 29, 2022
47daa66
Refactored action creation. Still needs some love.
cgrindel Apr 30, 2022
e711c5b
Switched extension to PBXTarget.
cgrindel Apr 30, 2022
be623d6
Updated the buildableName to use productName if available.
cgrindel Apr 30, 2022
146d70e
Remove commented code
cgrindel Apr 30, 2022
4aafd78
Remove unused code
cgrindel Apr 30, 2022
adff3bd
Removed unused args from createXCSchemes. Seeing error generating.
cgrindel Apr 30, 2022
a75f0f4
Fixed failure when scheme name include slashes.
cgrindel Apr 30, 2022
10b388f
Fixed code formatting.
cgrindel Apr 30, 2022
a4f63b5
Added schemes to fixtures.
cgrindel Apr 30, 2022
54a7a22
Moved PBXTarget extensions to their own file. Added placeholder for
cgrindel May 2, 2022
27e7ead
Updated to use isLaunchable.
cgrindel Apr 30, 2022
be2b11d
Added tests for buildableName
cgrindel May 2, 2022
b315a9c
Refactored createXCSchemes
cgrindel Apr 30, 2022
4f344d1
More refactor of createXCSchemes
cgrindel Apr 30, 2022
9cf1855
Update placeholder tests.
cgrindel Apr 30, 2022
07ac289
Small refactor
cgrindel May 1, 2022
5396379
Add no targets test
cgrindel May 1, 2022
104bfe1
Add XcodeProjContainerReference
cgrindel May 4, 2022
58a437f
Started adding tests for XcodeProjContainerReference
cgrindel May 1, 2022
2a5ad83
Finished tests for XcodeProjContainerReference
cgrindel May 1, 2022
17126ea
Added first scheme assertion
cgrindel May 1, 2022
caa4516
Tests are green
cgrindel May 1, 2022
1f396ef
Added assertion messages
cgrindel May 1, 2022
a471e5c
Clean up
cgrindel May 1, 2022
252e648
Updated with defaultBuildConfigurationName tests
cgrindel May 2, 2022
716823e
Compiles
cgrindel May 2, 2022
59c9ce8
Fix merge issue
cgrindel May 2, 2022
725627b
Fix inadvertent formatting
cgrindel May 2, 2022
d91162b
Remove inadvertent formatting
cgrindel May 2, 2022
5052dc1
Pass filePathResolver instead of referencedContainer
cgrindel May 3, 2022
6b6217d
Undo formatting
cgrindel May 3, 2022
a60dd2b
Fix some formatting
cgrindel May 3, 2022
bfd7603
Remove XcodeProjContainerReference again
cgrindel May 3, 2022
c6bcc97
Update specs
cgrindel May 4, 2022
3214c96
Add constant for bazelDepdencies TargetID
cgrindel May 3, 2022
cda1ebe
Fix signatures
cgrindel May 4, 2022
87586b4
Add Bazel Dependencies to pbxTargets
cgrindel May 4, 2022
6d8bcdb
Add bazel depdencies to fixtures
cgrindel May 4, 2022
9041dfb
Enable code that prevents Xcode from prompting autocreate of schemes
cgrindel May 4, 2022
71ae495
Update ios_app specs
cgrindel May 4, 2022
f80dc1f
Simplify map
cgrindel May 4, 2022
9c7673b
Fix typo and comment
cgrindel May 4, 2022
13725a8
Add private visibility
cgrindel May 4, 2022
4f874ae
Change formatting of buildFor
cgrindel May 4, 2022
c8b10ff
Change return statement
cgrindel May 4, 2022
bfa2990
Update SetTargetDependencies
cgrindel May 4, 2022
48e3047
Remove prefix from bazelDependencies value
cgrindel May 4, 2022
fd40256
Add blank line back
cgrindel May 4, 2022
5420de9
Fix string
cgrindel May 4, 2022
75aef9e
Update schemeName to use target name
cgrindel May 4, 2022
6ed654d
Add value for lastUpgradeVersion in XCScheme
cgrindel May 4, 2022
3b08860
Fix test names
cgrindel May 4, 2022
5df36fd
Update buildableName logic to check product path and productName
cgrindel May 4, 2022
1d86561
Add comment about the file reference initialization
cgrindel May 4, 2022
2dcec79
Add file and line args to assertScheme
cgrindel May 4, 2022
feb0ebb
Change assert arg
cgrindel May 4, 2022
41e1a44
Change fixtures used in test
cgrindel May 4, 2022
26a6e4a
Generate fixtures
cgrindel May 4, 2022
4e420f0
Fix string format
cgrindel May 4, 2022
421e844
Add version to scheme
cgrindel May 4, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?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/>
<dict>
<key>IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded</key>
<false/>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1320">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "7E7D155EBCA520F35DEA3571"
BuildableName = "BazelDependencies"
BlueprintName = "BazelDependencies"
ReferencedContainer = "container:test/fixtures/bwb.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
</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">
</LaunchAction>
<ProfileAction
buildConfiguration = "Debug"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Debug"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1320">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "64AE6000A6317B9C077F3B1E"
BuildableName = "libCoreUtilsObjC.a"
BlueprintName = "CoreUtilsObjC"
ReferencedContainer = "container:test/fixtures/bwb.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
</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">
</LaunchAction>
<ProfileAction
buildConfiguration = "Debug"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Debug"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1320">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "DEF15AA97EC0FE28A9A97CAA"
BuildableName = "Example.app"
BlueprintName = "Example"
ReferencedContainer = "container:test/fixtures/bwb.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
</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 = "DEF15AA97EC0FE28A9A97CAA"
BuildableName = "Example.app"
BlueprintName = "Example"
ReferencedContainer = "container:test/fixtures/bwb.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Debug"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "DEF15AA97EC0FE28A9A97CAA"
BuildableName = "Example.app"
BlueprintName = "Example"
ReferencedContainer = "container:test/fixtures/bwb.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Debug"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1320">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "7E5DFA29686635FDE423D8F4"
BuildableName = "ExampleObjcTests.xctest"
BlueprintName = "ExampleObjcTests.__internal__.__test_bundle"
ReferencedContainer = "container:test/fixtures/bwb.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</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 = "7E5DFA29686635FDE423D8F4"
BuildableName = "ExampleObjcTests.xctest"
BlueprintName = "ExampleObjcTests.__internal__.__test_bundle"
ReferencedContainer = "container:test/fixtures/bwb.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Debug"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "7E5DFA29686635FDE423D8F4"
BuildableName = "ExampleObjcTests.xctest"
BlueprintName = "ExampleObjcTests.__internal__.__test_bundle"
ReferencedContainer = "container:test/fixtures/bwb.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Debug"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1320">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D133FDFF63F008FDDB07BE99"
BuildableName = "ExampleTests.xctest"
BlueprintName = "ExampleTests.__internal__.__test_bundle"
ReferencedContainer = "container:test/fixtures/bwb.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</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 = "D133FDFF63F008FDDB07BE99"
BuildableName = "ExampleTests.xctest"
BlueprintName = "ExampleTests.__internal__.__test_bundle"
ReferencedContainer = "container:test/fixtures/bwb.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Debug"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D133FDFF63F008FDDB07BE99"
BuildableName = "ExampleTests.xctest"
BlueprintName = "ExampleTests.__internal__.__test_bundle"
ReferencedContainer = "container:test/fixtures/bwb.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Debug"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Loading