File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
src/Microsoft.DotNet.XHarness.Apple/Orchestration Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,18 @@ Task<ExitCode> ExecuteMacCatalystApp(AppBundleInformation appBundleInfo)
126
126
127
127
Task < ExitCode > ExecuteApp ( AppBundleInformation appBundleInfo , IDevice device , IDevice ? companionDevice )
128
128
{
129
+ // Exit code detection is broken on the newest iOS
130
+ // More details here: https://github.com/dotnet/xharness/issues/819
131
+ if ( expectedExitCode != 0 )
132
+ {
133
+ var os = target . Platform . IsSimulator ( ) ? device . OSVersion . Split ( ' ' , 2 ) . Last ( ) : device . OSVersion ;
134
+ if ( Version . TryParse ( os , out var version ) && version . Major > 14 )
135
+ {
136
+ _logger . LogWarning (
137
+ "Exit code detection is not working on iOS/tvOS 15+ so the run will fail to match it with the expected value" ) ;
138
+ }
139
+ }
140
+
129
141
appRunStarted = true ;
130
142
return this . ExecuteApp (
131
143
appBundleInfo ,
You can’t perform that action at this time.
0 commit comments