SwiftShell icon indicating copy to clipboard operation
SwiftShell copied to clipboard

runAsync(bash"") cannot write nothing on onStringOutput on mac osx app standalone

Open pjcau opened this issue 3 years ago • 2 comments

HI,

I did app mac osx in BigSur that send Process().run and write in textEditor the logs. It' a process async that poll some https, and I need logs all inside my apps. It works perfect whe run on xcode but standlone don't write nothing. So I looking for also the xcode forum, the point is for process async that Pipe() cannot buffering, and we can do force it.

I think that yo have the same issue also in this sdk.

That's it's real case, I use upload-symbols to send a 50 symbols, so 10 minute to finish it all.

let asyncCommand = runAsync(bash: /Carthage_FirebaseCrashlytics_scripts/upload-symbols  -gsp /AppHouse/resources/GoogleService-Info-PROD.plist -p ios //Downloads/appDsyms ").onCompletion { command in
           debugPrintOnTerminal(string: " command is \(String(describing: command))")
       }
       asyncCommand.stdout.onStringOutput {
           print($0)
           debugPrintOnTerminal(string: " output is \(String(describing: $0))")
       }

I cannot use the command.finish(), because lock the app.

Thanks all.

Jonny

pjcau avatar Feb 12 '21 08:02 pjcau

Hi Guys,

is there any news?

BR

J

pjcau avatar Feb 18 '21 07:02 pjcau

I do have the same issue unfortunately.

xMarkusSpringerx avatar May 06 '21 15:05 xMarkusSpringerx