LLDB launches xcodebuild with xcpretty

I run xcodebuildthrough the debugger lldb, so I can change its execution, for example:

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 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?

+4
source share
2 answers

try it

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

instead

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

or you can go this way

-s - -sdk iphonesimulator -destination 'name = iPhone SE' test > output.txt

xcpretty < output.txt

0

-args lldb " " . -c , lldb . lldb.

-, , . - lldb -w process attach, lldb . . , lldb , , .

0

Source: https://habr.com/ru/post/1677986/


All Articles