【发布时间】:2017-10-27 05:58:03
【问题描述】:
我正在通过lldb 调试器启动xcodebuild,这样我就可以改变它的执行方式:
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
我想要实现的是将xcpretty附加到:
process launch -s -- -sdk iphonesimulator -destination 'name=iPhone SE' test
喜欢
process launch -s -- -sdk iphonesimulator -destination 'name=iPhone SE' test || xcpretty
但我可以看出显然不是这样。
xcodebuild: error: Unknown build action '||'.
如果可能的话,有什么想法吗?如果可以,怎么做?
【问题讨论】:
标签: ios xcode lldb xcodebuild