Deprecated API Usage when submitting to MAS - QuickTime/QTKit APIs
See original GitHub issue- I have read the contribution documentation for this project.
- I agree to follow the code of conduct that this project follows, as appropriate.
- I have searched the issue tracker for an issue that matches the one I want to file, without success.
Please describe your issue:
After compiling my app using electron-forge package --platform=mas
, and submitting my app to the Mac App Store (with intermediary steps), I get the error: "Deprecated API Usage - Apple no longer accepts submissions of apps that use QuickTime or QTKit APIs.
I’ve done some snooping around, and some of the only other issues that replicate this are with very old versions of Electron and electron-packager, or with people not using the --platform=mas
command properly. However, my version of electron-forge and the created app both use relatively updated versions of each dependency, and I’m using the --platform=mas
option.
Has anybody else encountered a problem publishing an Electron-Forge app to the Mac App Store? I’m currently using the Angular 5 boilerplate - my code is available here.
What command line arguments are you passing?
electron-forge package --platform=mas
electron-osx-sign ...
electron-osx-flat
I upload the file outputted by electron-osx-flat
, but I’ve identified that the problem is with electron-forge package --platform=mas
- the other two commands work on a non-Electron Forge project.
What does your config.forge
data in package.json
look like?
"config": {
"forge": {
"make_targets": {
"win32": [
"squirrel"
],
"darwin": [
"zip"
],
"linux": [
"deb"
]
},
"electronPackagerConfig": {
"packageManager": "npm",
"icon": "src/assets/img/fair-chair.icns",
"ignore": ".+.o$",
"appBundleId": "me.matthewwang.fair-chair",
"helperBundleId": "me.matthewwang.fair-chair.helper",
"buildVersion": "1.0.2"
},
"electronWinstallerConfig": {
"name": "fair_chair"
},
"electronInstallerDebian": {},
"github_repository": {
"owner": "malsf21",
"name": "fair-chair"
},
"windowsStoreConfig": {
"packageName": "",
"name": "fairchair"
}
}
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
@MarshallOfSound @malept I think I figured out the problem, which is quite odd. I did a full reset of my node configuration (so deleting
node_modules
, reinstalling node and my global packages), and I still encountered the problem - however, I noticed that theelectron
package was still in my MAS-packaged app’s contents even after removing it with the suggestion from @malept . This should be unexpected behaviour, as I was not installingelectron
into the app (but it was required byelectron/types
.This is problematic because the
electron
package containsElectron.app
, the distributable.app
, which is not MAS compliant. Therefore, this is what was triggering the QtKit alert (at least to my knowledge).So, before signing the app (but after packaging it with
electron-forge package --platform=mas
), I went into the.app
’s package contents, deletedResources/app/node_modules/electron/dist
(which contains theElectron.app
), and then proceeded normally. My app was successfully submitted to the MAS.I’m not entirely sure what’s causing this to happen - I think it’s the requirement of
electron
fromelectron/types
, which is a non-mas compliant distributable. What do you think?@MarshallOfSound , any thoughts? Is there somewhere else that I should look for, or another project I should consult?