Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

a required plist file or resource is malformed

I am facing this error on every flutter project build. Although it runs ok. The error happens on the codesign command What do I need to fix ? I have validated that every *.plist file is ok using plutil -lint

ERROR MESSAGE

/usr/bin/codesign --force --sign MY_SHA_CODE --verbose
/Users/macbookair/workspace/flutter_application_1/build/ios/Release-iphoneos/Runner.app/Frameworks/libswiftCore.dylib)` exited with status 0. The command's
output was:

/Users/macbookair/workspace/flutter_application_1/build/ios/Release-iphoneos/Runner.app/Frameworks/libswiftCore.dylib: a required plist file or resource is
malformed

Info.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>Flutter Application 1</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>flutter_application_1</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/></dict>
</plist>

Please help.

Answered by DTS Engineer in 841153022
so minimum supported iOS version was set to 12.0 by default .

Hmmm, that’s not good. App Store currently requires Xcode 16 and Xcode 16’s minimum deployment target is iOS 15.

This matters because, once you raise the deployment to iOS 15, there’s no need for any Swift system libraries. Here’s what I see if I create a new app from the iOS > App template in Xcode 16.3:

% find Test785788.app
Test785788.app
Test785788.app/_CodeSignature
Test785788.app/_CodeSignature/CodeResources
Test785788.app/Test785788
Test785788.app/embedded.mobileprovision
Test785788.app/Info.plist
Test785788.app/PkgInfo

Look Ma, no Swift system libraries!

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Two quick questions:

  • You’re building for iOS, right?

  • What is your minimum supported iOS version?

I have validated that every *.plist file is ok using plutil -lint

The issue here isn’t that your app’s Info.plist but the Info.plist of the libswiftCore.dylib dynamic library that’s called out in the error. However, before we dig into that I want to first check that you actually need that library, and hence my questions above.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I did not specify that explicitly, so minimum supported iOS version was set to 12.0 by default .

And Yes I am building for ios using flutter build ios command

Accepted Answer
so minimum supported iOS version was set to 12.0 by default .

Hmmm, that’s not good. App Store currently requires Xcode 16 and Xcode 16’s minimum deployment target is iOS 15.

This matters because, once you raise the deployment to iOS 15, there’s no need for any Swift system libraries. Here’s what I see if I create a new app from the iOS > App template in Xcode 16.3:

% find Test785788.app
Test785788.app
Test785788.app/_CodeSignature
Test785788.app/_CodeSignature/CodeResources
Test785788.app/Test785788
Test785788.app/embedded.mobileprovision
Test785788.app/Info.plist
Test785788.app/PkgInfo

Look Ma, no Swift system libraries!

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

a required plist file or resource is malformed
 
 
Q