gpt4 book ai didi

ios - LLDB 使用 xcpretty 启动 xcodebuild

转载 作者:可可西里 更新时间:2023-11-01 06:13:15 27 4
gpt4 key购买 nike

我正在通过 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 '||'.

任何想法是否可能,如果可能的话如何?

最佳答案

试试这个

process launch -s -- -sdk iphonesimulator -destination 'name=iPhone SE' 测试 |漂亮

代替

process launch -s -- -sdk iphonesimulator -destination 'name=iPhone SE' 测试 ||漂亮

或者你可以走这条路

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

xcpretty < 输出.txt

关于ios - LLDB 使用 xcpretty 启动 xcodebuild,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44199897/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com