LLDB launch xcodebuild with xcpretty

Viewed 401

I am launching xcodebuild through the lldb debugger so I can alter its execution like:

lldb

# set debugging target
target create /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild

# launch process and stop at entry point
process launch -s -- -sdk iphonesimulator -destination 'name=iPhone SE' test

# set a breakpoint
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

# resume execution
continue

What I want to achieve is to attach xcpretty to:

process launch -s -- -sdk iphonesimulator -destination 'name=iPhone SE' test

like

process launch -s -- -sdk iphonesimulator -destination 'name=iPhone SE' test || xcpretty

but I can see that obviously that is not the way.

xcodebuild: error: Unknown build action '||'.

Any ideas if that is even possible and if so how ?

2 Answers
Related