WKApplication、WKWatchKitApp

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 “demo.app/demo.app” bundle. For details, see: https://developer.apple.com/documentation/watchkit/creating_independent_watchos_apps/setting_up_a_watchos_project (ID: 1***fc8)

我们APP中没有watchkit相关功能,但是在xcode16.3上传包的时候一直提示此错误?是什么原因?

I 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.

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

@sunyouxiang, In Xcode’s Project navigator, select your project, then choose Xcode > Editor > Validate Settings. Let us know if that resolves your issue.

Unfortunately this didn't change anything, still getting the same error. :/ And it still happens in validation when uploading the archive.

WKApplication、WKWatchKitApp
 
 
Q