Why does Xcode consider my macOS app as iOS app?

Viewed 28

I'm trying to use Table and TableColumn in my crossed-platform app (macOS and iOS)

Since this view is for macOS only I use #if os(macOS) to determine the current OS, but when I run my app in the simulator (Mac Catalyst or Rosetta), the table does not appear, and the #else part executes.

I will be grateful to anyone who knows the solution.

0 Answers
Related