Skip to content
Discussion options

You must be logged in to vote

The problem is discussed at https://developer.apple.com/forums/thread/761439: Xcode no longer sets the ENABLE_PREVIEWS environment variable for SwiftUI previews, which is the only way we have to prevent running the skip gradle Xcode build phase command that handles the compile/launch on Android. Toggling the "Editor > Canvas > Use Legacy Previews Execution" menu item should work around the issue for now, but note that that setting will be reset every time Xcode upgrades, so you will need to re-enable it every time there is an update.

The other solution is to just comment-out the "skip gradle" command in the "Run skip gradle" build script when you are developing with SwiftUI previews, and …

Replies: 12 comments 12 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@marcprux
Comment options

@arshmeets
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@davidakoontz
Comment options

@arshmeet-s
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@davidakoontz
Comment options

@davidakoontz
Comment options

@timkoss
Comment options

@timkoss
Comment options

@JeffFlowerday
Comment options

Answer selected by marcprux
Comment options

You must be logged in to vote
3 replies
@timkoss
Comment options

@marcprux
Comment options

@marcprux
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants