Build warning after migrating watchOS project to single target in Xcode 14

I have an iOS app with an independent watchOS app.

With Xcode 14, I migrated the project to only use a single target for watchOS (i.e. remove the "extension" target).

Everything builds, but I get the following build warning:

appName.app is a Foundation extension and must be embedded in the parent app bundle's PlugIns directory, but is embedded in the parent app bundle's Watch directory.

where "appName" is the product name of the watchOS target.

I tried the following, to no avail:

  • restart Xcode
  • restart computer
  • clean build folder
  • delete derived data

Any ideas?

Answered by Frameworks Engineer in 728152022

Can you check your watch app's Info.plist to make sure there are no references to NSExtension?

Accepted Answer

Can you check your watch app's Info.plist to make sure there are no references to NSExtension?

Build warning after migrating watchOS project to single target in Xcode 14
 
 
Q