Cannot find the Watchkit Extension folder

Hi, I'm trying to develop my first apple watch app referencing some blogs. According to them, right after creating a new "watch OS > App" project, I have to change the values in the "info.plist" file in the WatchKit Extension folder. However, I cannot find any WatchKit Extension folder in my project directory.

How can I find it? or can I edit parameters in "info.plist" from somewhere else?

Environment: macOS Monterey 12.6 / Xcode 14

Best Regards, Takayuki

When were the blogs published ? Are you sure they use Xcode 14 ? What you describe seems to relate to Xcode 13 with apps defined as companion to iOS app.

AFAIK, you don't have to change info.plist.

At the top of your project view (on the left) is the "heart" item. That's your project. Click on that and you should see the project plus an app as a target.

Here's what I have listed:

  • PROJECTS: "MyApp"
  • TARGETS: "MyApp", "MyApp Watch App"

Previously, iOS apps with a companion watchOS app would look like this:

  • PROJECTS: "MyApp"
  • TARGETS: "MyApp", "MyApp WatchKit", "MyApp WatchKit Extension"

"MyApp WatchKit" would contain the storyboard that laid out how the app would look on the Watch, and "MyApp WatchKit Extension" held the code that dealt with data and updated the interface.

If you're writing a watchOS app you no longer need a WatchKit Extension because the interface and code are all in the same place.

You may find it easier to work from some sample code from Apple, such as this: Adding widgets to the Lock Screen and watch faces

As others have said, in Xcode 14, Watch apps no longer have a WatchKit Extension target (they've been apps, not extensions, since watchOS 2, but the vestigial Extension target lingered). I'd be curious to know what exactly you're being asked to change in the Info.plist, but everything that's relevant to the watch app is now in the Watch App target's Info.plist.

Cannot find the Watchkit Extension folder
 
 
Q