@Developer Tools Engineer Thanks for the fix and update on the issue.
I tried using the 15.1 beta 3 xcode and found the Issue resolved (CoreDeviceService memory not getting exhausted after some time of test execution).
Though, stepped into another issue now(find in below points).
Ran 150-200 UI tests using xcodebuild test-without-building command.
Suddenly, UI tests started failing with below error
Error Domain=com.apple.dt.deviceprep Code=-27 "Browsing on the local area network for iPhone, which has previously reported preparation errors" UserInfo={NSUnderlyingError=0x60000bf8e670 {Error Domain=com.apple.dt.CoreDeviceError Code=1000 "The specified device was not found." UserInfo={com.apple.dt.DVTCoreDevice.operationName=connect, NSLocalizedDescription=The specified device was not found., DVTIssueReportingFunctionalityKey=1}}, NSRecoveryAttempter=<_DVTErrorRecoveryHandler: 0x600003068270>, NSLocalizedRecoverySuggestion=Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly., NSLocalizedRecoveryOptions=(
Cancel
), DVTRecoveryBlockKey=<__NSMallocBlock__: 0x60000a016670>, NSLocalizedDescription=Browsing on the local area network for iPhone, which has previously reported preparation errors}
2023-11-29 13:41:46.643 xcodebuild[21347:1823038] Run Destination Preflight: Waiting for the destination to become ready.
2023-11-29 13:41:46.644 xcodebuild[21347:1822911] [MT] Run Destination Preflight: Waiting for the destination to become ready.
2023-11-29 13:41:46.652 xcodebuild[21347:1822911] [MT] IDETestOperationsObserverDebug: 108.183 elapsed -- Testing started completed.
2023-11-29 13:41:46.652 xcodebuild[21347:1822911] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2023-11-29 13:41:46.652 xcodebuild[21347:1822911] [MT] IDETestOperationsObserverDebug: 108.183 sec, +108.183 sec -- end
Testing failed:
BudgetKeeperUITests-Runner (424) encountered an error (Failed to establish communication with the test runner. (Underlying Error: A connection to this device has not been established.))
After this issue, app install also started failing with below error message
13:45:38 Enabling developer disk image services.
13:45:38 Acquired usage assertion.
ERROR: Timeout while connecting to remote device. (com.apple.mobiledevice error -402652910.)
FunctionName = _AMDeviceCreateWithRemoteDeviceWithError
LineNumber = 325
Surprisingly, this issue got resolved in 3-4 minutes automatically but during these 3-4 min all tests failed, all app install failed.
Requesting to look into this new issue and fix in upcoming beta version.
Also, I am interested in knowing the root cause of CoreDeviceService memory exhaust issue and how this was related to app install failure :)
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: