codesign for .app is not working

Hi I have been signing my app file for awhile. I am using the same application and the same cert for awhile. Not too long ago with the same app I was also able to notarize. But now Apple will not validate my app.


"Error Domain=ITunesSoftwareServiceErrorDomain Code=-20008 \"The Info.plist indicates an iOS app, but submitting a pkg or mpkg.\" UserInfo={NSLocalizedDescription=The Info.plist indicates an iOS app, but submitting a pkg or mpkg., NSLocalizedFailureReason=Unable to validate your application.}"


What is strange is that my plist has not changed. And it is neither an iOS app or pkg, it is an app. I need to sign it first so when I create the dmg I can sign that as well.


my plist -- I redacted the values, but if any Keys are questionable I would like to know


<?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>BuildMachineOSBuild</key>

<string>VALUE REDACTED</string>

<key>CFBundleDisplayName</key>

<string>VALUE REDACTED</string>

<key>CFBundleExecutable</key>

<string>VALUE REDACTED</string>

<key>CFBundleIconFile</key>

<string>VALUE REDACTED</string>

<key>CFBundleIdentifier</key>

<string>VALUE REDACTED</string>

<key>CFBundleInfoDictionaryVersion</key>

<string>VALUE REDACTED</string>

<key>CFBundleName</key>

<string>VALUE REDACTED</string>

<key>CFBundlePackageType</key>

<string>VALUE REDACTED</string>

<key>CFBundleShortVersionString</key>

<string>VALUE REDACTED</string>

<key>CFBundleVersion</key>

<string>VALUE REDACTED</string>

<key>DTCompiler</key>

<string>VALUE REDACTED</string>

<key>DTSDKBuild</key>

<string>VALUE REDACTED</string>

<key>DTSDKName</key>

<string>VALUE REDACTED</string>

<key>DTXcode</key>

<string>VALUE REDACTED</string>

<key>DTXcodeBuild</key>

<string>VALUE REDACTED</string>

<key>LSApplicationCategoryType</key>

<string>VALUE REDACTED</string>

<key>LSMinimumSystemVersion</key>

<string>10.10.0</string>

<key>NSCameraUsageDescription</key>

<string>VALUE REDACTED</string>

<key>NSHighResolutionCapable</key>

<true/>

<key>NSMainNibFile</key>

<string>MainMenu</string>

<key>NSMicrophoneUsageDescription</key>

<string>This app needs access to the microphone</string>

<key>NSPrincipalClass</key>

<string>AtomApplication</string>

<key>VALUE REDACTED</key>

<true/>

</dict>

</plist>


Replies

I don’t see a

CFBundleSupportedPlatforms
property; that seems like a good place to start.

Oh, and a good way to investigate this would be to create a new dummy app with Xcode and see what it gets in its

Info.plist
. Pasted in below is an example, created with Xcode 11.2.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
<?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>BuildMachineOSBuild</key>
    <string>18G1012</string>
    <key>CFBundleDevelopmentRegion</key>
    <string>en</string>
    <key>CFBundleExecutable</key>
    <string>xxsm</string>
    <key>CFBundleIdentifier</key>
    <string>com.example.apple-samplecode.xxsm</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleName</key>
    <string>xxsm</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleShortVersionString</key>
    <string>1.0</string>
    <key>CFBundleSupportedPlatforms</key>
    <array>
        <string>MacOSX</string>
    </array>
    <key>CFBundleVersion</key>
    <string>1</string>
    <key>DTCompiler</key>
    <string>com.apple.compilers.llvm.clang.1_0</string>
    <key>DTPlatformBuild</key>
    <string>11B52</string>
    <key>DTPlatformVersion</key>
    <string>GM</string>
    <key>DTSDKBuild</key>
    <string>19B81</string>
    <key>DTSDKName</key>
    <string>macosx10.15</string>
    <key>DTXcode</key>
    <string>1120</string>
    <key>DTXcodeBuild</key>
    <string>11B52</string>
    <key>LSMinimumSystemVersion</key>
    <string>10.14</string>
    <key>NSHumanReadableCopyright</key>
    <string>Copyright © 2019 Quinn. All rights reserved.</string>
    <key>NSMainStoryboardFile</key>
    <string>Main</string>
    <key>NSPrincipalClass</key>
    <string>NSApplication</string>
    <key>NSSupportsAutomaticTermination</key>
    <true/>
    <key>NSSupportsSuddenTermination</key>
    <true/>
</dict>
</plist>