Cannot find 'Table' in scope

I opened the Session1 - Part1 - End file.

In the "GardenDetail" view in the "Navigation" Folder of the project Xcode throws the error "cannot find 'Table' in scope".

I did not changed anything from the original tutorial and have Xcode 13 and BigSur 11.6 on a M1 Mac.

  • You did change something... you are using Xcode 13.

Add a Comment

Accepted Reply

This app can run only on MacOS 12.

struct like KeyPathComparator, Table and others are not available before.

Hence the error messages you get with 11.6.

If I were you, I would wait for official release of MacOS 12 and not try to install beta version.

  • Thank you so much ;-)

Add a Comment

Replies

In the "GardenDetail" view in the "Navigation" Folder of the project Xcode

Which project ? That would really help if you provided the exact access link to the code.

Add a Comment

This app can run only on MacOS 12.

struct like KeyPathComparator, Table and others are not available before.

Hence the error messages you get with 11.6.

If I were you, I would wait for official release of MacOS 12 and not try to install beta version.

  • Thank you so much ;-)

Add a Comment

I am running OS 12 and I am still getting the "cannot find 'Table' in scope" messages. I am using the latest version of Xcode and making a MacOS app using only SwiftUI. What am I missing here? Thanks

  • @AnimalOnDrums, I am using the latest version of Xcode Are you sure you are using Xcode 13.1? Xcode 13.0 does not contain macOS SDK 12.

Add a Comment