Skip to content

fix: disable more private macOS APIs in MAS build (6-1-x) - #20970

Merged
zcbenz merged 4 commits into
6-1-xfrom
mas-patch-remote-layer-6-1-x
Dec 13, 2019
Merged

zcbenz merged 4 commits into
6-1-xfrom
mas-patch-remote-layer-6-1-x

Conversation

@zcbenz

@zcbenz zcbenz commented Nov 5, 2019

Copy link
Copy Markdown
Contributor

Backport of #20965.

Notes: Fix Electron apps getting rejected to Mac App Store.

@zcbenz
zcbenz requested a review from a team as a code owner November 5, 2019 11:28
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Nov 5, 2019
@trop trop Bot mentioned this pull request Nov 5, 2019
4 of 6 tasks
@trop trop Bot added 6-1-x backport This is a backport PR labels Nov 5, 2019
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Nov 5, 2019
@zcbenz
zcbenz merged commit cbe447e into 6-1-x Dec 13, 2019
@release-clerk

release-clerk Bot commented Dec 13, 2019

Copy link
Copy Markdown

Release Notes Persisted

Fix Electron apps getting rejected to Mac App Store.

@zcbenz
zcbenz deleted the mas-patch-remote-layer-6-1-x branch December 13, 2019 02:18
@gaodeng

gaodeng commented Dec 17, 2019 •

Copy link
Copy Markdown

@zcbenz electron 6.1.7 rejected by apple
here is the otool -ov output
d.txt

Guideline 2.5.1 - Performance - Software Requirements


Your app includes a version of an SDK from Electron that violates the App Store Review Guidelines. The version of the Electron SDK you are using in your app attempts to hide the use of private APIs. This is a violation Section 2.5.1 of the App Store Review Guidelines.

Guideline 2.5.1: Apps may only use public APIs.

Next Steps

To resolve this issue, please either remove the Electron SDK entirely from your app, or revise your app to utilize a corrected version of the Electron SDK.

@MarshallOfSound

MarshallOfSound commented Dec 17, 2019 •

Copy link
Copy Markdown
Member

@gaodeng Do they tell you which apis? If not challenge it and tell them you are using a corrected version of the SDK.

The fact they rejected you so fast makes me think that they are doing automated version matching 🤷‍♂️

@gaodeng

gaodeng commented Dec 17, 2019

Copy link
Copy Markdown

@MarshallOfSound Above is all the information they gave me. I have asked them for more information in the Resolution Center and hope they will reply to me with specific information instead of giving a review Guideline

@gaodeng

gaodeng commented Dec 18, 2019

Copy link
Copy Markdown

New Message from App Store Review

Hello,

Thank you for your reply. Your app’s review will require additional time as we take this new information into account. We do not require any further information about your app at this time.

Once we have thoroughly reviewed your app, we will either contact you in Resolution Center to communicate any issues found, or your app will be approved.

Best regards,

App Store Review

@gaodeng

gaodeng commented Dec 20, 2019

Copy link
Copy Markdown

6.1.7 just approved by apple 10 minutes ago

briandk added a commit to briandk/transcriptase that referenced this pull request Jan 26, 2020
This should fix the rejections we're getting from the Mac App Store.

## Background

Newer versions of the electron framework use a version of Chromium that calls private (undocumented) Apple APIs. Apple started rejecting apps that do that, and all users of the Electron SDK were affected.

As I understand it, the Electron team rolled back Chromium and/or created a patched Chromium version that disabled calls to those APIs, but this is a stopgap fix.

See:

- electron/electron#20027
- electron/electron#20970
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6-1-x backport This is a backport PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants