Skip to content

Stop including stderr in simulator output#41

Merged
albertdai merged 1 commit intogoogle:masterfrom
keith:ks/stop-including-stderr-in-simulator-output
Feb 3, 2022
Merged

Stop including stderr in simulator output#41
albertdai merged 1 commit intogoogle:masterfrom
keith:ks/stop-including-stderr-in-simulator-output

Conversation

@keith
Copy link
Copy Markdown
Contributor

@keith keith commented Jan 27, 2022

On M1 macs running anything with xcrun prints a bunch of these warnings
to stderr (FB9089778):

objc[35011]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1ffc8ab90) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1044502c8). One of the two will be used. Which one is undefined.

So capturing this output, and then using it as json, is invalid on M1
machines when this happens. None of the consumers of this function check
the output for any error strings, so this change should only improve the
other use cases.

On M1 macs running anything with xcrun prints a bunch of these warnings
to stderr (FB9089778):

```
objc[35011]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1ffc8ab90) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1044502c8). One of the two will be used. Which one is undefined.
```

So capturing this output, and then using it as json, is invalid on M1
machines when this happens. None of the consumers of this function check
the output for any error strings, so this change should only improve the
other use cases.
@keith keith force-pushed the ks/stop-including-stderr-in-simulator-output branch from 09f733a to a171066 Compare January 27, 2022 21:24
@keith
Copy link
Copy Markdown
Contributor Author

keith commented Feb 2, 2022

@albertdai can you review?

@albertdai albertdai merged commit db0fce1 into google:master Feb 3, 2022
@keith keith deleted the ks/stop-including-stderr-in-simulator-output branch February 3, 2022 17:48
@keith
Copy link
Copy Markdown
Contributor Author

keith commented Feb 3, 2022

thanks!

keith added a commit to bazelbuild/rules_apple that referenced this pull request Feb 3, 2022
keith added a commit to bazelbuild/rules_apple that referenced this pull request Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants