-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run a script in a build pre-action phase to write the appropriate garbage collection setting into the xcproj.xcconfig file
- Loading branch information
Showing
4 changed files
with
156 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
GCC_ENABLE_OBJC_GC = unsupported |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
149 changes: 149 additions & 0 deletions
149
xcproj.xcodeproj/xcshareddata/xcschemes/xcproj.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "0500" | ||
version = "1.7"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES"> | ||
<PreActions> | ||
<ExecutionAction | ||
ActionType = "Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.ShellScriptAction"> | ||
<ActionContent | ||
title = "Setup garbage collection support" | ||
scriptText = "if [ ${XCODE_VERSION_MAJOR} -ge 500 ]; then GCC_ENABLE_OBJC_GC=unsupported else GCC_ENABLE_OBJC_GC=required fi echo "GCC_ENABLE_OBJC_GC = ${GCC_ENABLE_OBJC_GC}" > "${SRCROOT}/xcproj.xcconfig""> | ||
<EnvironmentBuildable> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "8DD76F960486AA7600D96B5E" | ||
BuildableName = "xcproj" | ||
BlueprintName = "xcproj" | ||
ReferencedContainer = "container:xcproj.xcodeproj"> | ||
</BuildableReference> | ||
</EnvironmentBuildable> | ||
</ActionContent> | ||
</ExecutionAction> | ||
</PreActions> | ||
<PostActions> | ||
<ExecutionAction | ||
ActionType = "Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.ShellScriptAction"> | ||
<ActionContent | ||
title = "Run Script" | ||
scriptText = "git checkout "${SRCROOT}/xcproj.xcconfig""> | ||
<EnvironmentBuildable> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "8DD76F960486AA7600D96B5E" | ||
BuildableName = "xcproj" | ||
BlueprintName = "xcproj" | ||
ReferencedContainer = "container:xcproj.xcodeproj"> | ||
</BuildableReference> | ||
</EnvironmentBuildable> | ||
</ActionContent> | ||
</ExecutionAction> | ||
</PostActions> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "8DD76F960486AA7600D96B5E" | ||
BuildableName = "xcproj" | ||
BlueprintName = "xcproj" | ||
ReferencedContainer = "container:xcproj.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
buildConfiguration = "Debug"> | ||
<Testables> | ||
</Testables> | ||
<MacroExpansion> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "8DD76F960486AA7600D96B5E" | ||
BuildableName = "xcproj" | ||
BlueprintName = "xcproj" | ||
ReferencedContainer = "container:xcproj.xcodeproj"> | ||
</BuildableReference> | ||
</MacroExpansion> | ||
</TestAction> | ||
<LaunchAction | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
launchStyle = "0" | ||
useCustomWorkingDirectory = "YES" | ||
customWorkingDirectory = "$(SRCROOT)/Sandbox/" | ||
buildConfiguration = "Debug" | ||
ignoresPersistentStateOnLaunch = "NO" | ||
debugDocumentVersioning = "YES" | ||
allowLocationSimulation = "YES"> | ||
<BuildableProductRunnable> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "8DD76F960486AA7600D96B5E" | ||
BuildableName = "xcproj" | ||
BlueprintName = "xcproj" | ||
ReferencedContainer = "container:xcproj.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
<CommandLineArguments> | ||
<CommandLineArgument | ||
argument = "touch" | ||
isEnabled = "NO"> | ||
</CommandLineArgument> | ||
<CommandLineArgument | ||
argument = "--project Sandbox.xcodeproj" | ||
isEnabled = "NO"> | ||
</CommandLineArgument> | ||
<CommandLineArgument | ||
argument = "--vers" | ||
isEnabled = "YES"> | ||
</CommandLineArgument> | ||
<CommandLineArgument | ||
argument = "--help" | ||
isEnabled = "NO"> | ||
</CommandLineArgument> | ||
<CommandLineArgument | ||
argument = "add-resources-bundle Resources/v2.0/test.bundle" | ||
isEnabled = "NO"> | ||
</CommandLineArgument> | ||
<CommandLineArgument | ||
argument = "list-headers" | ||
isEnabled = "NO"> | ||
</CommandLineArgument> | ||
</CommandLineArguments> | ||
<AdditionalOptions> | ||
</AdditionalOptions> | ||
</LaunchAction> | ||
<ProfileAction | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
buildConfiguration = "Release" | ||
debugDocumentVersioning = "YES"> | ||
<BuildableProductRunnable> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "8DD76F960486AA7600D96B5E" | ||
BuildableName = "xcproj" | ||
BlueprintName = "xcproj" | ||
ReferencedContainer = "container:xcproj.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |