CocoaPods / fourflusher

A library for interacting with Xcode simulators.
MIT License
32 stars 15 forks source link

Workaround to ignore spurious simctl warnings #28

Open davidme-stripe opened 2 years ago

davidme-stripe commented 2 years ago

We've seen a few situations where pod lib lint fails while parsing the list of simulators on Apple Silicon Macs:

 - ERROR | [iOS] unknown: Encountered an unknown error (859: unexpected token at 'objc[76557]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1f700e098) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1065842c8). One of the two will be used. Which one is undefined.

This appears to be caused by extraneous warnings when running xcrun simctl list -j devices.

It looks like there was a workaround in https://github.com/CocoaPods/fourflusher/pull/27, but it doesn't cover every type of error. I think it might help to filter out every line before the opening {.

This might also be related to this comment.