Skip to content

Conversation

@dalexsoto
Copy link
Member

Fixes #23058

GitHub Actions Autoformatter and others added 2 commits July 29, 2025 07:19
#endif
#pragma warning disable CA1422

#if __MACOS__
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm assuming this is supposed to be:

Suggested change
#if __MACOS__
#if !__MACOS__

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I did think the same when I was writing this but looks like it has been like that forever, there is no !__MACOS__ exclusion here and this code moved to SceneDelegate for all other platforms but macOS

public override bool FinishedLaunching (UIApplication application, NSDictionary launchOptions)
{
#if __MACCATALYST__ || __MACOS__
TestRuntime.NotifyLaunchCompleted ();
#endif
var window = new UIWindow (UIScreen.MainScreen.Bounds);
var runner = new TouchRunner (window);
foreach (var assembly in TestLoader.GetTestAssemblies ())
runner.Add (assembly);
Window = window;
Runner = runner;
window.RootViewController = new UINavigationController (runner.GetViewController ());
window.MakeKeyAndVisible ();
PostFinishedLaunching ();
return true;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the code can be removed then, because UIWindow doesn't exist on macOS, so I don't think this code is ever built on macOS.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

Copy link
Contributor

@mandel-macaque mandel-macaque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Taking into account rolf comments.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@dalexsoto dalexsoto requested a review from rolfbjarne July 29, 2025 18:40
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [PR Build #d6720bf] Build passed (Detect API changes) ✅

Pipeline on Agent
Hash: d6720bfbfa328ae4b78e149ff095a1de7f4b7841 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build #d6720bf] Build passed (Build packages) ✅

Pipeline on Agent
Hash: d6720bfbfa328ae4b78e149ff095a1de7f4b7841 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ API diff for current PR / commit

.NET ( No breaking changes )

✅ API diff vs stable

.NET ( No breaking changes )

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: d6720bfbfa328ae4b78e149ff095a1de7f4b7841 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build #d6720bf] Build passed (Build macOS tests) ✅

Pipeline on Agent
Hash: d6720bfbfa328ae4b78e149ff095a1de7f4b7841 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build #d6720bf] Tests on macOS X64 - Mac Sonoma (14) passed 💻

All tests on macOS X64 - Mac Sonoma (14) passed.

Pipeline on Agent
Hash: d6720bfbfa328ae4b78e149ff095a1de7f4b7841 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build #d6720bf] Tests on macOS M1 - Mac Monterey (12) passed 💻

All tests on macOS M1 - Mac Monterey (12) passed.

Pipeline on Agent
Hash: d6720bfbfa328ae4b78e149ff095a1de7f4b7841 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build #d6720bf] Tests on macOS M1 - Mac Ventura (13) passed 💻

All tests on macOS M1 - Mac Ventura (13) passed.

Pipeline on Agent
Hash: d6720bfbfa328ae4b78e149ff095a1de7f4b7841 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build #d6720bf] Tests on macOS arm64 - Mac Sequoia (15) passed 💻

All tests on macOS arm64 - Mac Sequoia (15) passed.

Pipeline on Agent
Hash: d6720bfbfa328ae4b78e149ff095a1de7f4b7841 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

#endif
#pragma warning disable CA1422

#if __MACOS__
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the code can be removed then, because UIWindow doesn't exist on macOS, so I don't think this code is ever built on macOS.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🔥 [CI Build #d6720bf] Test results 🔥

Test results

❌ Tests failed on VSTS: test results

1 tests crashed, 0 tests failed, 114 tests passed.

Failures

❌ windows tests

🔥 Failed catastrophically on VSTS: test results - windows (no summary found).

Html Report (VSDrops) Download

Successes

✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (iOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (macOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (tvOS): All 1 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ framework: All 2 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. Html Report (VSDrops) Download
✅ generator: All 5 tests passed. Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. Html Report (VSDrops) Download
✅ introspection: All 6 tests passed. Html Report (VSDrops) Download
✅ linker: All 44 tests passed. Html Report (VSDrops) Download
✅ monotouch (iOS): All 8 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 11 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 9 tests passed. Html Report (VSDrops) Download
✅ monotouch (tvOS): All 8 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. Html Report (VSDrops) Download

Pipeline on Agent
Hash: d6720bfbfa328ae4b78e149ff095a1de7f4b7841 [PR build]

@dalexsoto dalexsoto merged commit 6d1ec28 into xcode26.0 Jul 30, 2025
41 of 43 checks passed
@dalexsoto dalexsoto deleted the dev/alex/xcode26Tests branch July 30, 2025 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants