Created
October 27, 2012 18:13
-
-
Save blakewatters/3965566 to your computer and use it in GitHub Desktop.
rake schemes:install example task
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
<?xml version="1.0" encoding="UTF-8"?> | |
<Scheme | |
LastUpgradeVersion = "0450" | |
version = "1.3"> | |
<BuildAction | |
parallelizeBuildables = "YES" | |
buildImplicitDependencies = "YES"> | |
<BuildActionEntries> | |
<BuildActionEntry | |
buildForTesting = "NO" | |
buildForRunning = "YES" | |
buildForProfiling = "YES" | |
buildForArchiving = "NO" | |
buildForAnalyzing = "YES"> | |
<BuildableReference | |
BuildableIdentifier = "primary" | |
BlueprintIdentifier = "25BE944D14FBE8DA008BC1C0" | |
BuildableName = "GateGuru (Integration Tests).app" | |
BlueprintName = "Integration Tests" | |
ReferencedContainer = "container:GateGuru.xcodeproj"> | |
</BuildableReference> | |
</BuildActionEntry> | |
</BuildActionEntries> | |
</BuildAction> | |
<TestAction | |
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | |
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | |
shouldUseLaunchSchemeArgsEnv = "YES" | |
buildConfiguration = "Test"> | |
<Testables> | |
<TestableReference | |
skipped = "NO"> | |
<BuildableReference | |
BuildableIdentifier = "primary" | |
BlueprintIdentifier = "25BE93CA14FBC02A008BC1C0" | |
BuildableName = "GateGuruTests.octest" | |
BlueprintName = "GateGuruTests" | |
ReferencedContainer = "container:GateGuru.xcodeproj"> | |
</BuildableReference> | |
</TestableReference> | |
</Testables> | |
<MacroExpansion> | |
<BuildableReference | |
BuildableIdentifier = "primary" | |
BlueprintIdentifier = "25BE944D14FBE8DA008BC1C0" | |
BuildableName = "GateGuru (Integration Tests).app" | |
BlueprintName = "Integration Tests" | |
ReferencedContainer = "container:GateGuru.xcodeproj"> | |
</BuildableReference> | |
</MacroExpansion> | |
</TestAction> | |
<LaunchAction | |
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | |
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | |
launchStyle = "0" | |
useCustomWorkingDirectory = "NO" | |
buildConfiguration = "Test" | |
ignoresPersistentStateOnLaunch = "NO" | |
debugDocumentVersioning = "YES" | |
enableOpenGLFrameCaptureMode = "0" | |
allowLocationSimulation = "YES"> | |
<BuildableProductRunnable> | |
<BuildableReference | |
BuildableIdentifier = "primary" | |
BlueprintIdentifier = "25BE944D14FBE8DA008BC1C0" | |
BuildableName = "GateGuru (Integration Tests).app" | |
BlueprintName = "Integration Tests" | |
ReferencedContainer = "container:GateGuru.xcodeproj"> | |
</BuildableReference> | |
</BuildableProductRunnable> | |
<CommandLineArguments> | |
<CommandLineArgument | |
argument = "-com.apple.CoreData.SQLDebug 1" | |
isEnabled = "NO"> | |
</CommandLineArgument> | |
</CommandLineArguments> | |
<EnvironmentVariables> | |
<EnvironmentVariable | |
key = "KIF_SCENARIO_FILTER" | |
value = "Present Check In View Controller" | |
isEnabled = "NO"> | |
</EnvironmentVariable> | |
<EnvironmentVariable | |
key = "KIF_FAILURE_FILE" | |
value = "/tmp/KIF_FAILURE_FILE.tmp" | |
isEnabled = "NO"> | |
</EnvironmentVariable> | |
<EnvironmentVariable | |
key = "RKLogLevel.App" | |
value = "Trace" | |
isEnabled = "NO"> | |
</EnvironmentVariable> | |
<EnvironmentVariable | |
key = "RKLogLevel.RestKit" | |
value = "Trace" | |
isEnabled = "NO"> | |
</EnvironmentVariable> | |
<EnvironmentVariable | |
key = "RKLogLevel.RestKit.CoreData" | |
value = "Trace" | |
isEnabled = "NO"> | |
</EnvironmentVariable> | |
<EnvironmentVariable | |
key = "RKLogLevel.RestKit.CoreData.Cache" | |
value = "Trace" | |
isEnabled = "NO"> | |
</EnvironmentVariable> | |
<EnvironmentVariable | |
key = "RKLogLevel.RestKit.Search" | |
value = "Trace" | |
isEnabled = "NO"> | |
</EnvironmentVariable> | |
<EnvironmentVariable | |
key = "RKLogLevel.RestKit.Network" | |
value = "Debug" | |
isEnabled = "NO"> | |
</EnvironmentVariable> | |
<EnvironmentVariable | |
key = "RKLogLevel.RestKit.ObjectMapping" | |
value = "Trace" | |
isEnabled = "NO"> | |
</EnvironmentVariable> | |
<EnvironmentVariable | |
key = "RKLogLevel.RestKit.Support" | |
value = "Trace" | |
isEnabled = "NO"> | |
</EnvironmentVariable> | |
<EnvironmentVariable | |
key = "RKLogLevel.RestKit.Testing" | |
value = "Trace" | |
isEnabled = "NO"> | |
</EnvironmentVariable> | |
<EnvironmentVariable | |
key = "RKLogLevel.RestKit.UI" | |
value = "Trace" | |
isEnabled = "NO"> | |
</EnvironmentVariable> | |
</EnvironmentVariables> | |
<AdditionalOptions> | |
<AdditionalOption | |
key = "NSZombieEnabled" | |
value = "YES" | |
isEnabled = "YES"> | |
</AdditionalOption> | |
</AdditionalOptions> | |
</LaunchAction> | |
<ProfileAction | |
shouldUseLaunchSchemeArgsEnv = "YES" | |
savedToolIdentifier = "" | |
useCustomWorkingDirectory = "NO" | |
buildConfiguration = "Test" | |
debugDocumentVersioning = "YES"> | |
<BuildableProductRunnable> | |
<BuildableReference | |
BuildableIdentifier = "primary" | |
BlueprintIdentifier = "25BE944D14FBE8DA008BC1C0" | |
BuildableName = "GateGuru (Integration Tests).app" | |
BlueprintName = "Integration Tests" | |
ReferencedContainer = "container:GateGuru.xcodeproj"> | |
</BuildableReference> | |
</BuildableProductRunnable> | |
</ProfileAction> | |
<AnalyzeAction | |
buildConfiguration = "Test"> | |
</AnalyzeAction> | |
<ArchiveAction | |
buildConfiguration = "Test" | |
revealArchiveInOrganizer = "YES"> | |
</ArchiveAction> | |
</Scheme> |
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
namespace :schemes do | |
desc 'Copies the default schemes from the Schemes directory into your Xcode user schemes directory' | |
task :install do | |
root_dir = File.dirname(__FILE__) | |
project_userdata = "#{root_dir}/GateGuru.xcodeproj/xcuserdata/" | |
userdata_dir = `ls #{project_userdata}`.chomp | |
xcschemes_dir = File.join(project_userdata, userdata_dir, 'xcschemes') | |
schemes_dir = File.join(root_dir, 'Schemes') | |
command = "cp -R #{schemes_dir}/ #{xcschemes_dir}" | |
puts "Copying Schemes.. (executing `#{command}`)" | |
`#{command}` | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment