openbakery / gradle-xcodePlugin

gradle plugin for building Xcode Projects for iOS, watchOS, macOS or tvOS
Apache License 2.0
457 stars 129 forks source link

Failing `xcodetestrun` #465

Open fonkadelic opened 1 year ago

fonkadelic commented 1 year ago

Trying to run xcodebuildForTest in combination with xcodetestrun fails for me with the following error:

Execution failed for task ':xcodetestrun'.
> Command failed to run (exit code 1): '/Applications/Xcode-14.3.0.app/Contents/Developer/usr/bin/xcresulttool get --format json --path /project/build/derivedData/Logs/Test/Test-UITestingApp-2023.06.01_11-41-26-+0200.xcresult'
  Tail of output:
  error: Info.plist at /project/build/derivedData/Logs/Test/Test-UITestingApp-2023.06.01_11-41-26-+0200.xcresult/Info.plist does not exist, the result bundle might be corrupted or the provided path is not a result bundle

Looking at the implementation of XcodeTestRunTask i've noticed that this task removes the logs directory which seems to be required.

Was there a specific reason to remove this directory?