Expanding your iOS app to Apple Watch is a fantastic way to enhance user experience by bringing key features directly to users' wrists. Apple Watch apps can be developed as standalone apps or extensions of existing iOS apps, allowing seamless interactions across both devices. This guide will walk you through the process of adding a Watch app to an existing iOS app project.
Setting Up the Watch App Target
To start, open your existing iOS project in Xcode and add a new Watch app target:
- Go to File > New > Target.
- From the target templates, select WatchOS and then App.
- In the configuration screen we've selected "Watch App for Existing iOS App", meaning that this Watch App will always depend on hte iOS App. Then for the "Testing System", you can select XCTest or Swift Testing for your Watch unit tests (in this example we selected none).
Continue reading
Access to all the content with our plans.
- Junior level content
- Senior level content
- Expert level content
- Extra content
- Question submissions
Monthly
Yearly
Be the first to comment