question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Testing MAS builds locally

See original GitHub issue
  • Version: 12.0.3
  • Target: MAS

Running MAS builds locally no longer works, due to changes in Apple guidelines and electron-osx-sign documented here: https://github.com/electron-userland/electron-osx-sign/pull/105#issuecomment-260211431

Recently, the com.apple.developer.team-identifier entitlement was added to all new Mac provisioning profiles. This means that, going forward, distribution builds of Mac apps cannot be run directly; they are for submitting to iTunes Connect for app review only.

@develar’s suggestion from another issue is to provide a mas-dev build target to fix this issue: https://github.com/electron-userland/electron-builder/issues/897#issuecomment-270881631

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:11
  • Comments:16 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
funkyboycommented, Jun 23, 2017

At first it didn’t work for me. It did when I added the dev provisioning profile into the same folder. To create a dev profile I had to create a dev certificate and specify the UUID of the machines I want to run the app on.

1reaction
liliakaicommented, Apr 26, 2017

I was able to build a mas target that runs locally by setting "type": "development" in electron-builder’s config, and placing my App_Development.provisionprofile in the project directory. 🎉

However, I also had to remove all but one “Mac Developer” key from my keychain, or else electron-builder would attempt to use the wrong identity, and setting CSC_NAME did not work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Testing MAS build locally? | Apple Developer Forums
I'm trying to create a package for the Mac App Store using Electron 6.1.9 and Electron builder 21.2.0. ... It appears to work...
Read more >
electron: how to test a MAS package before submitting to the ...
You can test the app locally by re-signing with a Developer ID certificate/provisioning profile. These are also for distribution (just not ...
Read more >
Ability to test YAML builds locally - Visual Studio Feedback
When testing out YAML builds, I find that my workflow devolves into a bunch of modify local, add, commit, push loops until I...
Read more >
MAS - electron-builder
MAS. The top-level mas key contains set of options instructing electron-builder on how it should build MAS (Mac Application Store) target.
Read more >
Testing your site locally - Karl Broman
To construct and test your site locally, go into the directory and type. jekyll build. This will create (or modify) a _site/ directory, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found