I´m trying to get the new Canvas feature from Xcode 11 running, but the Canvas won´t show up. What am I doing wrong?
I just created a new default project (single view app), compiled it and activated 'Editor > Editor and Canvas'. I can navigate to each file in the project, nothing shows up.
What else does need to be done?
Some important checklist , please check one by one. If all this is done , you can easily get "Editor and Canvas" option.
Your MacOS version is equal or upper than 10.15
You are using at least Xcode 11 Beta or later. If you have Xcode 11 but your MacOS is bellow 10.15 , you won't be able to see the option.
Run the commands from Terminal :
and then
Most of the time, option 4 is the problem.
you can still see the live view (without Catalina installed ) with the playgrounds. using
UIHostingController
.To preview and interact with views from the canvas in Xcode, ensure your Mac is running MacOS 10.15 beta.
Tools for SwiftUI development are only available when running on macOS 10.15 beta.
As well as running MacOS Catalina [beta] it seems that you need to have the command line tools installed otherwise it fails and 'pauses' the canvas (this happened with Xcode 11 Beta 2). To install them run:
Canvas preview only works after update MacOS 10.14 to 10.15
We have Mac OS Catalina Beta version (10.15)
Upgrade your system and it works. :)
Check this link.
You need to be on Catalina macOS version (10.15), as stated in official tutorial
Be warned: Catalina doesn't support 32-bit applications, some old apps will stop working after update.