Upload failed Validation Issue WKApplication or WKWatchKitApp is required

I added a watchkit extension to an existing app.

I get this error when uploading to App Store Connect. Building the archive itself is fine:

Prepared archive for uploading Upload failed error: Validation failed Missing Info.plist value. A value for the key “WKApplication”, or “WKWatchKitApp” if your project has a WatchKit App Extension target, is required in “Runner.app/Watch/watch_Watch_App.app” bundle. For details, see: https://developer.apple.com/documentation/watchkit/creating_independent_watchos_apps/setting_up_a_watchos_project

have the exact same issue when bundling. I added the flag manually in a additional plist fields entry with WKApplication=1 because my Info.Plist is generated and it didn't help. I wrote a custom Run Script Phase that added the flag and that didn't help as well.

I need a reply from someone from Apple here. This needs to be fixed.

Answered by DTS Engineer in 853599022

Is there any special reason that you still need a WatchKit extension? If not, I'd suggest that you go with a single-target watchOS app, which will significantly simplify the configuration of your project. For more background, see the following technote:

I believe your issue will go away by making your watch app single-target, but let me know if it doesn't.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

There is another issue here, that is experiencing the same issue, I commented on that one as well.

https://developer.apple.com/forums/thread/784198

Is there any special reason that you still need a WatchKit extension? If not, I'd suggest that you go with a single-target watchOS app, which will significantly simplify the configuration of your project. For more background, see the following technote:

I believe your issue will go away by making your watch app single-target, but let me know if it doesn't.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

The App actualy doesn't use any watchkit extension, just a standalone watchOS target as you said, that's the strange thing.

OK, I am wondering how your Info.Plist was "generated" then. Are you using a tool to generate the Info.Plist for your app? If yes, is it possible that the Info.Plist your tool generated overwrites the workable one Xcode created for you?

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

It was generated by XCode with the settings turned to YES in the Build Settings no third party tool or otherwise.

Thanks for your clarification.

I don't have an Apple Connect account to really go through the whole process of uploading an app to App Store, but I did try the following:

  1. Creating an iOS app using Xcode template.
  2. Adding a watchOS app target by following the steps.
  3. Archiving the app, and distributing it for releasing testing.

The whole process went through pretty well.

I also tried validating the app. The process also went well, until it hit the App Record Creation Error, which was expected because I didn't have an app record.

To move forward in this situation, I suggest that you start an Xcode template project, as described above, and share the details of your steps with screenshots, and also the project that reproduces the issue. That way, folks may be able to figure out the issue more easily.

Alternatively, you can consider contacting Apple's DTS, if you can't share on the forums due to sensitive information or file size,

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

Upload failed Validation Issue WKApplication or WKWatchKitApp is required
 
 
Q