Skip to content
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

Transporter gives Incomplete Document Type Configuration warning on .pkg verification #4614

Closed
raisedwizardry opened this issue Jan 26, 2020 · 2 comments

Comments

@raisedwizardry
Copy link

When I yarn dist a MAS target and add the resulting pkg to transporter and then verify the pkg I receive the following warning:

WARNING ITMS-90788: "Incomplete Document Type Configuration. The CFBundleDocumentTypes dictionary array in the 'com.raisedwizardry.imgViewOn' Info.plist should contain an LSHandlerRank value for the CFBundleTypeName 'webp' entry. Refer to https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/TP40009249-SW1 for more information on the LSHandlerRank key."

This same warning happens for each file association I have set in my package.json as follows (I happen to have 13 of them meaning 13 warning errors):

        "fileAssociations": [
            ...
            {
                "ext": "webp",
                "description": "webp files",
                "role": "Viewer"
            },
            {
                "ext": "bmp",
                "description": "bitmap files",
                "role": "Viewer"
            },
            ...
        ]

After reading the link in the error which mentions CFBundleTypeName and LSHandlerRank as well as the electron builder docs on file association it seems that an entry for Handler rank with value of Default needs to be added to the info.plist Document Type Array for each item in the array. This is described pretty well in this stack overflow issue. I was able to get the warning to go away by adding the entry in info.plist as described in stack overflow however it was painfully manual.

It is curious that in the docs, role is listed twice. Almost as if a mac only entry for fileAssociations rank should exist with options Owner, Default, Alternate or None:

screen of docs

  • Electron Builder Version: 22.2.0
  • Electron Version: 6.1.7
  • Target: mas (mac app store)
  • OS: MacOS 10.15
  • node version: 12.11.1
  • npm version: 6.11.3
@red1033
Copy link

red1033 commented Feb 10, 2020

When I yarn dist a MAS target and add the resulting pkg to transporter and then verify the pkg I receive the following warning:

WARNING ITMS-90788: "Incomplete Document Type Configuration. The CFBundleDocumentTypes dictionary array in the 'com.raisedwizardry.imgViewOn' Info.plist should contain an LSHandlerRank value for the CFBundleTypeName 'webp' entry. Refer to https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/TP40009249-SW1 for more information on the LSHandlerRank key."

This same warning happens for each file association I have set in my package.json as follows (I happen to have 13 of them meaning 13 warning errors):

        "fileAssociations": [
            ...
            {
                "ext": "webp",
                "description": "webp files",
                "role": "Viewer"
            },
            {
                "ext": "bmp",
                "description": "bitmap files",
                "role": "Viewer"
            },
            ...
        ]

After reading the link in the error which mentions CFBundleTypeName and LSHandlerRank as well as the electron builder docs on file association it seems that an entry for Handler rank with value of Default needs to be added to the info.plist Document Type Array for each item in the array. This is described pretty well in this stack overflow issue. I was able to get the warning to go away by adding the entry in info.plist as described in stack overflow however it was painfully manual.

It is curious that in the docs, role is listed twice. Almost as if a mac only entry for fileAssociations rank should exist with options Owner, Default, Alternate or None:

screen of docs

  • Electron Builder Version: 22.2.0
  • Electron Version: 6.1.7
  • Target: mas (mac app store)
  • OS: MacOS 10.15
  • node version: 12.11.1
  • npm version: 6.11.3

@mifi
Copy link
Contributor

mifi commented Apr 3, 2020

I'm having the same issue. See also #4052
Creating a PR to fix

mifi added a commit to mifi/electron-builder that referenced this issue Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants