Skip to content

Mac App Store Private API Rejection: Electron 5.0.10 #20027

Closed

Description

@thomasdao

Issue Details

  • Electron Version: 5.0.10

Rejection Email

ITMS-90338: Non-public API usage - The app contains or inherits from non-public classes in Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework: CAContext, CALayerHost, NSAccessibilityRemoteUIElement, NSNextStepFrame, NSThemeFrame, NSURLFileTypeMappings . If method names in your source code match the private Apple APIs listed above, altering your method names will help prevent this app from being flagged in future submissions. In addition, note that one or more of the above APIs may be located in a static library that was included with your app. If so, they must be removed. For further information, visit the Technical Support Information at http://developer.apple.com/support/technical/

Activity

  1. thomasdao commented on Aug 29, 2019

    @thomasdao
    Author

    I downgrade Electron to 5.0.9 and still get rejection email.

  2. JustinPierce commented on Aug 29, 2019

    @JustinPierce

    I got this rejection this morning for Electron 5.0.4, and also for 5.0.10. I think something has changed on Apple's end.

  3. lubo08 commented on Aug 29, 2019

    @lubo08
  4. MarshallOfSound commented on Aug 29, 2019

    @MarshallOfSound
    Member

    List of private APIs detected:

    • _fileport_makefd
    • _fileport_makeport
    • CAContext
    • CALayerHost
    • NSAccessibilityRemoteUIElement
    • NSNextStepFrame
    • NSThemeFrame
    • NSURLFileTypeMappings

    Please only comment on this issue if your rejection email has APIs that are not in the list above. If you just comment +1 your comment will be removed. If you are also experiencing this rejection please react to this issue with 👍 to indicate so.

  5. mytran commented on Sep 2, 2019

    @mytran

    Developer relations responded and stated that they believe that the problem was on issue on their end and they will look into it. I checked tonight and my previously rejected builds are available now in App Store Connect.

  6. ogi1982 commented on Sep 2, 2019

    @ogi1982

    I just checked as well and my previously rejected build (Electron 4.2.9) is also available on store.

  7. MarshallOfSound commented on Sep 2, 2019

    @MarshallOfSound
    Member

    Thanks @gaodeng , @mytran and @ogi1982 for that new information. It sounds like apple got a few reach-outs and either corrected their system or whitelisted the framework temporarily. Still waiting to hear back as to what exactly happened.

    I'll leave this open till at least next week where hopefully we'll have more info

  8. thomasdao commented on Sep 2, 2019

    @thomasdao
    Author

    I can now upload my build with Electron 5.0.10 to the Store as well. I'll probably leave to @MarshallOfSound to close this ticket :)

  9. ffflorian commented on Oct 30, 2019

    @ffflorian
    Contributor

    My app using Electron 4.2.12 was just rejected because of the following APIs:

    CAContext
    CALayerHost
    NSNextStepFrame
    NSThemeFrame
    NSURLFileTypeMappings
    
  10. iwodoudou commented on Oct 31, 2019

    @iwodoudou

    Electron 5.0.11

    Your app uses or references the following non-public APIs:

    CAContext
    CALayerHost
    NSAccessibilityRemoteUIElement
    NSNextStepFrame
    NSThemeFrame
    NSURLFileTypeMappings

  11. JCBsystem commented on Oct 31, 2019

    @JCBsystem

    electron : 6.0.10

    Guideline 2.5.1 - Performance - Software Requirements
    Your app uses or references the following non-public APIs:

    CAContext
    CALayerHost
    NSAccessibilityRemoteUIElement
    NSNextStepFrame
    NSThemeFrame
    NSURLFileTypeMappings

  12. aydogankaragoz commented on Oct 31, 2019

    @aydogankaragoz

    electron 3.0.2

    Your app app links against the following non-public framework(s):

    CAContext
    CALayerHost
    NSURLFileTypeMappings

  13. JCBsystem commented on Oct 31, 2019

    @JCBsystem

    @MarshallOfSound is there anything we can do to help ?
    i don't have the skills to fix this my self

  14. 131 remaining items

  15. buu700 commented on Feb 20, 2020

    @buu700

    @JCBsystem @MarshallOfSound @erisu

    Good news! My update was just accepted!

    It seems that app.asar.unpacked is generated by the Electron build toolchain. I don't know the point at which it's generated, but I ended up having to patch app-builder-lib as a temporary workaround:

    Screen Shot 2020-02-19 at 9 42 04 PM

    What I'm confused about is how no one else seems to have run into this issue, given that as far as I can tell it's a happy path Electron bug. Is there maybe something that Cordova (or my app) is doing differently that might cause app.asar.unpacked to be unexpectedly created (or unexpectedly populated with the electron module)?

  16. MarshallOfSound commented on Feb 20, 2020

    @MarshallOfSound
    Member

    app.asar.unpacked is completely unrelated to this error, deleting it actually will render parts of your app unusable. Your issue was due to using the wrong darwin/mas build, maybe some other change you made in your build scripts fixed the underlying issue but deleting that unpacked folder will have 0 postive impact and will break most apps

  17. JCBsystem commented on Feb 20, 2020

    @JCBsystem

    but there is 2 Electron apps in his app
    one on there normal place
    and one in the app.asar.unpacked .

    thats not right

  18. MarshallOfSound commented on Feb 20, 2020

    @MarshallOfSound
    Member

    @JCBsystem Sorry if I wasn't clear, I'm saying their issue is unrelated to #20027 (the current issue we are in). Their build system is incorrectly packaging their app either using or accidentally including the non-mas version of Electron and having that information / solution in this thread is poor context for folks reading this thread in the future. I was just making it clear that as their issue is completely different any solution they reference will not solve this issue.

  19. buu700 commented on Feb 20, 2020

    @buu700

    app.asar.unpacked is completely unrelated to this error, deleting it actually will render parts of your app unusable.

    Ah, thanks, that's good to know. Would deleting just app.asar.unpacked/node_modules/electron/dist/Electron.app cause issues?

    Your issue was due to using the wrong darwin/mas build

    Can you be more specific? You've said this several times and I don't understand what other kind of mas build you mean to suggest I'm using. Does the build config not look right?

    maybe some other change you made in your build scripts fixed the underlying issue but deleting that unpacked folder will have 0 postive impact and will break most apps

    Not sure what to tell you, there are literally no other changes. It passes with app.asar.unpacked removed and fails otherwise.

  20. MarshallOfSound commented on Feb 20, 2020

    @MarshallOfSound
    Member

    Ah, thanks, that's good to know. Would deleting just app.asar.unpacked/node_modules/electron/dist/Electron.app cause issues?

    Probably not if you delete just that app, but you should figure out why it's being put there instead of hacking around it.

    Can you be more specific? You've said this several times and I don't understand what other kind of mas build you mean to suggest I'm using. Does the build config not look right?

    The build config appears correct but as I said either using or accidentally including the non-mas version of Electron. In this case you were "including" the non-mas version of Electron by accident in that folder, although your build config was targeting mas by default the electron npm package will use the normal darwin build which was what was ending up in the app.asar.unpacked folder.

    You should figure out why that electron npm package was included in app.asar.unpacked but that
    should be resolved off this issue thread, we've gone off topic here 😄

  21. buu700 commented on Feb 20, 2020

    @buu700

    Got it, thanks for clarifying that! So some of the node modules in that folder are definitely needed at run-time, but just electron typically wouldn't be?

    In that case, I think we've narrowed down what it is that Cordova needs to fix (as well as an improvement for my hacky workaround). I'll go report this in the cordova-electron issue thread.

  22. briandk commented on Feb 20, 2020

    @briandk

    Sorry if this is answered elsewhere, but:

    Are Electron versions 7.x, 8.x, and 9.x also problematic users of private APIs? Or have there been updates in the latest versions of Electron to address this issue?

    I ask because I'm trying to figure out whether it's more work to undo the breaking API changes I made and revert back to Electron 5.x, or if I can just get a later version of Electron that's also fixed.

  23. james-criscuolo commented on Feb 26, 2020

    @james-criscuolo

    @briandk 8.0.2 and v9.0.0-beta.3 released yesterday and the release notes mention the fix, so those versions should be good for the app store. I do not believe a v7 release has come with the fix yet, but I assume the next one (so anything > 7.1.13) will have it, as the PR was ported to the v7 branch.

  24. mifi commented on Apr 2, 2020

    @mifi
    Contributor

    I just released my app losslesscut with electron 8.2.0 and can confirm I did not get any private API issues during review.

  25. kalachevmax commented on Apr 20, 2020

    @kalachevmax

    Guys, do you know, is there a way to use the autoUpdater module in MAS build? Maybe this question is related to the current discussion.

  26. fsproru commented on May 1, 2020

    @fsproru

    @kalachevmax Mac App Store should handle the updates on its own. Without the Electron app auto-updating itself. That being said, there may be a way to do both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions