I have an existing WatchOS 2 app. I want to upgrade it and add some WatchOS 3 features, so I have installed Xcode 8 beta 3. My question is do I need to create another target for WatchOS 3 project or I can still keep working on the same WatchOS 2 target and add new WatchOS 3 features there with Xcode 8.
Asked
Active
Viewed 291 times
1 Answers
2
Use same target but functions/code would need to be conditional:
#available(watchOS 3, *)
{
// do some watchOS 3 stuff
}
#else
{
// do some watchOS 2 stuff
}
#endif

Greg Robertson
- 2,317
- 1
- 16
- 30