ios – LLDB使用xcpretty启动xcodebuild
发布时间:2020-12-14 17:19:43 所属栏目:百科 来源:网络整理
导读:我通过lldb调试器启动 xcodebuild,所以我可以改变它的执行,如: lldb# set debugging targettarget create /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild# launch process and stop at entry pointprocess launch -s -- -sdk iphonesimula
我通过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 '||'. 任何想法,如果这是甚至可能,如果是这样,如何? 解决方法
试试这个
进程启动-s – -sdk iphonesimulator -destination’name = iPhone SE’测试| xcpretty 代替 进程启动-s – -sdk iphonesimulator -destination’name = iPhone SE’test || xcpretty 或者你可以走这条路 process launch -s – -sdk iphonesimulator -destination’name = iPhone SE’test> output.txt的 xcpretty< output.txt的 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |