You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mac App Store Private API Rejection: Electron 5.0.10 #20027
I agree to follow the Code of Conduct that this project adheres to.
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/
Reacted by Justin Pierce, Lubomir Sob., Lesley Andreza, Vadim, Kirill Galushko, Ognjen Bekić, Dražen Tenžera, gaodeng, Vladislav Dits, Multaniz and 56 more
Reacted by ruX and Kirill Galushko
Reacted by Gabriel Marinho, Alison Monteiro, Ayush Shekhar, Dmitry Khudorozhkov, Ricky, Gabe, Jason Worden, Steffan Halvorsen, Kirill Galushko, Mikael Finstad and 2 more
Reacted by Brian Kim, Matthew McEachen, Guilhem Sauvaire, Johannes Millan, brent, Borislav Ivanov, Steffan Halvorsen, Kirill Galushko, NiNJAD3vel0per, John L. Armstrong IV and 2 more
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.
Reacted by Lesley Andreza, Lubomir Sob., Vadim, Kirill Galushko, Ognjen Bekić, gaodeng, Vladislav Dits, Multaniz, Justin Pierce, Ryan Shetley and 78 more
Reacted by Brian Kim, Yuri Pereira Constante, Borislav Ivanov, Andrzej Budzanowski, Monte Thakkar, Caylan, Bnaya Peretz, Nikita Saltykov, Jose Lezama, Mikael Finstad and 2 more
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.
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
Reacted by Ognjen Bekić, Lubomir Sob. and Justin Pierce
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:
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)?
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
@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.
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.
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 😄
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.
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.
@briandk8.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.
Reacted by Ryan Lester, Joseph Chiang, Lan Tra, Kirill Klenov, vnpandey, Olav Rønnestad Birkeland, jcl, Vane Jung, Adelar da Silva Queiróz and Johannes Millan
@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.
Activity
thomasdao commentedon Aug 29, 2019
I downgrade Electron to 5.0.9 and still get rejection email.
JustinPierce commentedon Aug 29, 2019
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.
lubo08 commentedon Aug 29, 2019
MarshallOfSound commentedon Aug 29, 2019
List of private APIs detected:
_fileport_makefd_fileport_makeportCAContextCALayerHostNSAccessibilityRemoteUIElementNSNextStepFrameNSThemeFrameNSURLFileTypeMappingsPlease only comment on this issue if your rejection email has APIs that are not in the list above. If you just comment
+1your comment will be removed. If you are also experiencing this rejection please react to this issue with 👍 to indicate so.mytran commentedon Sep 2, 2019
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.
ogi1982 commentedon Sep 2, 2019
I just checked as well and my previously rejected build (Electron 4.2.9) is also available on store.
MarshallOfSound commentedon Sep 2, 2019
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
thomasdao commentedon Sep 2, 2019
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 :)
ffflorian commentedon Oct 30, 2019
My app using Electron 4.2.12 was just rejected because of the following APIs:
iwodoudou commentedon Oct 31, 2019
Electron 5.0.11
Your app uses or references the following non-public APIs:
JCBsystem commentedon Oct 31, 2019
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
aydogankaragoz commentedon Oct 31, 2019
electron 3.0.2
Your app app links against the following non-public framework(s):
CAContext
CALayerHost
NSURLFileTypeMappings
JCBsystem commentedon Oct 31, 2019
@MarshallOfSound is there anything we can do to help ?
i don't have the skills to fix this my self
131 remaining items
quick workaround for electron/electron#20027 (comment)
buu700 commentedon Feb 20, 2020
@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-libas a temporary workaround: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
electronmodule)?MarshallOfSound commentedon Feb 20, 2020
app.asar.unpackedis 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 appsJCBsystem commentedon Feb 20, 2020
but there is 2 Electron apps in his app
one on there normal place
and one in the app.asar.unpacked .
thats not right
MarshallOfSound commentedon Feb 20, 2020
@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.
buu700 commentedon Feb 20, 2020
Ah, thanks, that's good to know. Would deleting just
app.asar.unpacked/node_modules/electron/dist/Electron.appcause issues?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?
Not sure what to tell you, there are literally no other changes. It passes with app.asar.unpacked removed and fails otherwise.
MarshallOfSound commentedon Feb 20, 2020
Probably not if you delete just that app, but you should figure out why it's being put there instead of hacking around it.
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 targetingmasby default theelectronnpm package will use the normaldarwinbuild which was what was ending up in theapp.asar.unpackedfolder.You should figure out why that
electronnpm package was included inapp.asar.unpackedbut thatshould be resolved off this issue thread, we've gone off topic here 😄
buu700 commentedon Feb 20, 2020
Got it, thanks for clarifying that! So some of the node modules in that folder are definitely needed at run-time, but just
electrontypically 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.
briandk commentedon Feb 20, 2020
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.
james-criscuolo commentedon Feb 26, 2020
@briandk
8.0.2andv9.0.0-beta.3released 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.mifi commentedon Apr 2, 2020
I just released my app losslesscut with electron 8.2.0 and can confirm I did not get any private API issues during review.
kalachevmax commentedon Apr 20, 2020
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.
fsproru commentedon May 1, 2020
@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.
Update news-alerts: Apple letting in Electron apps again