Skip to content

RunCMake: Ignore error messages from iOS device being connected

Gusts Kaksis requested to merge gusc/cmake:xcode-tests-with-ios-device into master

When an iOS device is connected to the mac sometimes Xcode drops error messages in stderr that will make tests to fail. These error messages have nothing to do with the test itself - they mostly are regarding some connection issue with the iOS device, like screen being locked and needs the passcode etc.

An example message:

2020-11-28 09:56:17.191 xcodebuild[79535:2873624] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x7fa8934a0d60), TrueFi iPhone 7, iPhone, 13.4.1 (17E262), 619dbb77715a79c1e8145dc5c87c3d025f10c855> == Underlying device preparation errors ==
2020-11-28 09:56:17.191 xcodebuild[79535:2873624] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x7fa8934a0d60), TrueFi iPhone 7, iPhone, 13.4.1 (17E262), 619dbb77715a79c1e8145dc5c87c3d025f10c855> -- Failed _shouldMakeReadyForDevelopment check even though device is not locked by passcode.
Domain: com.apple.platform.iphoneos
Code: 5
Failure Reason: allowsSecureServices: 1. isConnected: 0. Platform: <DVTPlatform:0x7fa88e448710:'com.apple.platform.iphoneos':<DVTFilePath:0x7fa88e448690:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform'>>. DTDKDeviceIdentifierIsIDID: 0
--
2020-11-28 09:56:17.191 xcodebuild[79535:2873624] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x7fa8934a0d60), TrueFi iPhone 7, iPhone, 13.4.1 (17E262), 619dbb77715a79c1e8145dc5c87c3d025f10c855> == END: Underlying device preparation errors ==

Merge request reports