Skip to content

Project structure #83

Answered by mbrandonw
andreweades asked this question in Q&A
Apr 7, 2021 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

So I just went through this process from scratch cause I'm making a little preview app for our leaderboards and it was pretty straightforward. All I did was add a new target in Xcode, and by default that put a LeaderboardsPreview directory at the root. Then, in Xcode, I just dragged and dropped it to the Previews directory, and only had to fix two things: 1) the preview content file path was wrong, but I don't need that so deleted it from the Xcode project, and 2) the info plist path was wrong, so had to fix it by adding Previews/ to the beginning of it. After that everything worked like normal.

Hope it helps.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@andreweades
Comment options

Answer selected by andreweades
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants