Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Multiple Info.plist related errors occur when uploading an Apple Watch app #167892

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
yoshishn opened this issue Apr 27, 2025 · 6 comments
Open
Labels
in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds

Comments

@yoshishn
Copy link

yoshishn commented Apr 27, 2025

Hello. I’m currently using Flutter to develop iOS apps and Watch Apps for Apple Watch. I created an archive in Xcode and tried uploading it to App Store Connect, but I was experiencing multiple validation errors like the one below, which made me unable to proceed. Here is a summary of the error

I separate info.plist between iOS and watchOS, but it doesn't reflect even when I set the watch side. I think the settings on the iOS side have been reflected. I'm in a very difficult situation Thank you

	Prepared archive for uploading
	Upload failed
		error: Validation failed
	Invalid UIDeviceFamily. The Info.plist of Apple Watch application 'Runner.app/Watch/ Watch App.app' contains an invalid UIDeviceFamily value of '1'. (ID: ***)
	 
		error: Validation failed
	Invalid UIDeviceFamily. The Info.plist of Apple Watch application 'Runner.app/Watch/ Watch App.app' contains an invalid UIDeviceFamily value of '2'. (ID: ***)
	 
		error: Validation failed
	Invalid WatchKit App Bundle. The value '16.6' for the MinimumOSVersion key in Info.plist in bundle 'com.example.***' is not supported. (ID: ***)
	 
		error: Validation failed
	Invalid Info.plist key. The key 'LSRequiresIPhoneOS' in bundle Runner.app/Watch/ Watch App.app is invalid. (ID: ***)
	 
		error: Validation failed
	Invalid Info.plist key. The key 'WKAppBundleIdentifier' in bundle Runner.app/Watch/ Watch App.app is invalid. (ID: ***)
	 
		error: Validation failed
	Missing Apple Watch Extension. The application 'Runner.app/Watch/ Watch App.app' is missing its corresponding Apple Watch extension. (ID: ***)
	 
		error: Validation failed
	Missing Icons. No icons found for watch application 'Runner.app/Watch/ Watch App.app'. Make sure that its Info.plist file includes entries for CFBundleIconFiles. (ID: ***)
	 
		error: Validation failed
	Missing Info.plist value. A value for the Info.plist key 'CFBundleIconName' is missing in the bundle 'com.example.***'. Apps built with iOS 11 or later SDK must supply app icons in an asset catalog and must also provide a value for this Info.plist key. For more information see http://help.apple.com/xcode/mac/current/#/dev10510b1f7. (ID: ***)
	 
		error: Validation failed
	Invalid Info.plist value. The value for the key 'DTPlatformName' in bundle Runner.app/Watch/ Watch App.app is invalid. (ID: ***)
[✓] Flutter (Channel stable, 3.29.2, on macOS 15.3.1 24D70 darwin-arm64, locale ja-JP) [891ms]
    • Flutter version 3.29.2 on channel stable at /.asdf/installs/flutter/3.29.2-stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c236373904 (7 weeks ago), 2025-03-13 16:17:06 -0400
    • Engine revision 18b71d647a
    • Dart version 3.7.2
    • DevTools version 2.42.3

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [1,817ms]
    • Android SDK at /Library/Android/sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.3) [817ms]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web [11ms]
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1) [11ms]
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)

[✓] VS Code (version 1.99.3) [9ms]
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.108.0

[✓] Connected device (4 available) [9.6s]

[✓] Network resources [1,651ms]
    • All expected network resources are available.
@VB10
Copy link
Contributor

VB10 commented Apr 27, 2025

@yoshishn I hope this problem helps you. About the watch release issue, etc., a few people left a note. Please check this issue

#160622 (comment)

@darshankawar darshankawar added the in triage Presently being triaged by the triage team label Apr 28, 2025
@darshankawar
Copy link
Member

@yoshishn
Check above if it helps further in your case or not.

@darshankawar darshankawar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Apr 28, 2025
@yoshishn
Copy link
Author

@VB10
@darshankawar
Thanks for the confirmation.
I added the following to the info.plist on the watch side, but the error did not change.

    <key>WKCompanionAppBundleIdentifier</key>
    <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>

Also, there was an error in the flutter doctor shown above. The current Flutter version is 3.29.2.
The procedure for creating a test flight is Xcode→Product→Archive.
The simulator build in Xcode works fine.

Attached is the info.plist for IOS and WATCH.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>WKWatchKitApp</key>
    <true/>
    <key>WKCompanionAppBundleIdentifier</key>
    <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
	<dict>
		<key>CFBundleDevelopmentRegion</key>
		<string>$(DEVELOPMENT_LANGUAGE)</string>
		<key>CFBundleDisplayName</key>
		<string>***</string>
		<key>CFBundleExecutable</key>
		<string>$(EXECUTABLE_NAME)</string>
		<key>CFBundleIdentifier</key>
		<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
		<key>CFBundleInfoDictionaryVersion</key>
		<string>6.0</string>
		<key>CFBundleName</key>
		<string>wellness_sleep</string>
		<key>CFBundlePackageType</key>
		<string>APPL</string>
		<key>CFBundleShortVersionString</key>
		<string>$(FLUTTER_BUILD_NAME)</string>
		<key>CFBundleSignature</key>
		<string>????</string>
		<key>CFBundleVersion</key>
		<string>$(FLUTTER_BUILD_NUMBER)</string>
		<key>LSRequiresIPhoneOS</key>
		<true/>
		<key>UILaunchStoryboardName</key>
		<string>LaunchScreen</string>
		<key>UIMainStoryboardFile</key>
		<string>Main</string>
		<key>UISupportedInterfaceOrientations</key>
		<array>
			<string>UIInterfaceOrientationPortrait</string>
			<string>UIInterfaceOrientationLandscapeLeft</string>
			<string>UIInterfaceOrientationLandscapeRight</string>
		</array>
		<key>UISupportedInterfaceOrientations~ipad</key>
		<array>
			<string>UIInterfaceOrientationPortrait</string>
			<string>UIInterfaceOrientationPortraitUpsideDown</string>
			<string>UIInterfaceOrientationLandscapeLeft</string>
			<string>UIInterfaceOrientationLandscapeRight</string>
		</array>
		<key>CADisableMinimumFrameDurationOnPhone</key>
		<true/>
		<key>UIApplicationSupportsIndirectInputEvents</key>
		<true/>
		<key>NSHealthShareUsageDescription</key>
		<string>We will sync your data with the Apple Health app to give you better insights</string>
		<key>NSHealthUpdateUsageDescription</key>
		<string>We will sync your data with the Apple Health app to give you better insights</string>
	</dict>
</plist>

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Apr 29, 2025
@darshankawar
Copy link
Member

@yoshishn
Can you try to create a new Flutter app for watch app and see if you still get the same error as reported ?

@darshankawar darshankawar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Apr 30, 2025
@yoshishn
Copy link
Author

yoshishn commented May 6, 2025

@darshankawar
Sorry I’m late replying
I created a new watchApp and added WKWatchKitApp to info.plist and created TestFlight, but the following error is still output

Is it relevant that the storage path of the automatically generated watch info.plist is ios/Watch-App-Info.plist?
Is there a possibility that the correct path will be in ios/Watch App/Watch-App-Info.plist?
This had nothing to do with it

Select the application App of watchOS from Target as a procedure.

ProductName: Any value
Team: I’m using Terms
Organization Identifier: I’m using Identifier
Watch App for Existing iOS App
Runner
Testing System: None

Image Image
Validation failed
Invalid UIDeviceFamily. The Info.plist of Apple Watch application 'Runner.app/Watch/Watc.app' contains an invalid UIDeviceFamily value of '1'. 

Validation failed
Invalid UIDeviceFamily. The Info.plist of Apple Watch application 'Runner.app/Watch/Watch App.app' contains an invalid UIDeviceFamily value of '2'. 

Validation failed
Invalid WatchKit App Bundle. The value '16.6' for the MinimumOSVersion key in Info.plist in bundle 'com.example.watchkitapp' is not supported. 

Validation failed
Invalid Info.plist key. The key 'LSRequiresIPhoneOS' in bundle Runner.app/Watch/ Watch App.app is invalid.

Validation failed
Invalid Info.plist key. The key 'UIUserInterfaceStyle' in bundle Runner.app/Watch/Watch Watch App.app is invalid. 

Validation failed
Invalid Info.plist key. The key 'WKRunsIndependentlyOfCompanionApp' in bundle Runner.app/Watch/ Watch App.app is invalid. 

Validation failed
Missing Apple Watch Extension. The application 'Runner.app/Watch/Watch App.app' is missing its corresponding Apple Watch extension.

Validation failed
Missing Icons. No icons found for watch application 'Runner.app/Watch/Watch App.app'. Make sure that its Info.plist file includes entries for CFBundleIconFiles. 

Validation failed
Missing Info.plist value. A value for the Info.plist key 'CFBundleIconName' is missing in the bundle 'com.example.watchkitapp'. Apps built with iOS 11 or later SDK must supply app icons in an asset catalog and must also provide a value for this Info.plist key. For more information see http://help.apple.com/xcode/mac/current/#/dev10510b1f7.

Validation failed
Invalid Info.plist value. The value for the key 'DTPlatformName' in bundle Runner.app/Watch/ Watch App.app is invalid. 

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 6, 2025
@darshankawar
Copy link
Member

Thanks for the update. Please try to follow this and see if using it, you still get same behavior or expected.

@darshankawar darshankawar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds
Projects
None yet
Development

No branches or pull requests

3 participants