I run xcodebuildthrough the debugger lldb, so I can change its execution, for example:
lldb
target create /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
process launch -s
breakpoint set -F "+[IDELaunchParametersSnapshot launchParametersWithSchemeIdentifier:launcherIdentifier:debuggerIdentifier:launchStyle:runnableLocation:debugProcessAsUID:workingDirectory:commandLineArgs:environmentVariables:architecture:platformIdentifier:buildConfiguration:buildableProduct:deviceAppDataPackage:allowLocationSimulation:locationScenarioReference:showNonLocalizedStrings:language:region:routingCoverageFileReference:enableGPUFrameCaptureMode:enableGPUValidationMode:debugXPCServices:debugAppExtensions:internalIOSLaunchStyle:internalIOSSubstitutionApp:launchAutomaticallySubstyle:]"
break command add
po $rcx = (unsigned long)IDEDefaultLauncherIdentifier
po $r8 = (unsigned long)IDEDefaultDebuggerIdentifier
continue
DONE
continue
What I want to achieve is to bind xcprettyto:
process launch -s -- -sdk iphonesimulator -destination 'name=iPhone SE' test
as
process launch -s -- -sdk iphonesimulator -destination 'name=iPhone SE' test || xcpretty
but I see that obviously this is not so.
xcodebuild: error: Unknown build action '||'.
Any ideas, if possible, and if so, how?
source
share