IOS

Xcode cannot Preview “the preview preflight must belong to at least one target in the current scheme in order to use previews”

This happens after moving the swift files around.

Solution: simply quit Xcode and reload so that it can re-source the new location of the files.

Or command + B to rebuild. Sometimes those formatting errors are just not caught up and not rebuilt yet.

Standard

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.