summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/XcodeProject-Device/dummy_main.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/XcodeProject-Device/dummy_main.swift')
-rw-r--r--Tests/RunCMake/XcodeProject-Device/dummy_main.swift18
1 files changed, 18 insertions, 0 deletions
diff --git a/Tests/RunCMake/XcodeProject-Device/dummy_main.swift b/Tests/RunCMake/XcodeProject-Device/dummy_main.swift
new file mode 100644
index 0000000..1aaee42
--- /dev/null
+++ b/Tests/RunCMake/XcodeProject-Device/dummy_main.swift
@@ -0,0 +1,18 @@
+#if os(iOS)
+import UIKit
+
+@UIApplicationMain
+class MyApp: UIResponder, UIApplicationDelegate {
+}
+
+#elseif os(macOS)
+import SwiftUI
+
+@main
+struct MyApp: App {
+ var body: some Scene {
+ WindowGroup {
+ }
+ }
+}
+#endif