Reputation: 127
Xcode 12 (Beta) introduced the new multi-platform project template for iOS/macOS apps. If I add a new target (File -> New -> Target... -> Watch App), Xcode adds a new app project to the existing one. My preference is, that the watchOS-Project uses the shared folder, like the iOS and macOS app.
My question is, how to integrate another app project, like watchOS or tvOS, to an existing multi-platform project? As a reference, I found a GitHub-Project, which integrated watchOS and tvOS in a multi-platform project: https://github.com/jordansinger/SwiftUI-Kit
Upvotes: 4
Views: 4361
Reputation: 6037
I also struggled adding an new target for an additional platform. I ended up doing it like this:
9. Do the same for the Tests und UITests
It's cumbersome, but it works. Maybe somebody else finds a better way...
Upvotes: 2