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.

Answered by Claude31 in 691068022

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.

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.

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

Accepted Answer

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.

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

Cannot find 'Table' in scope
 
 
Q