Post

Replies

Boosts

Views

Activity

Reply to 'xcrun xctrace list devices' gives list of devices info in stderr - Python
Same in java and common terminal execution, just redirect error stream to a file. To reproduce in java, just create ProcessBuilder with proper command and start it. To read stream I used: import org.apache.commons.io.IOUtils; IOUtils.readLines(process.getInputStream(), encoding) InputStream returns nothing, while all output is in error stream. I had also problems with output encoding. On my local machine output was in UTF16LE encoding for some reason, while on other machines it was in UTF8
Oct ’20