"Unidentified developer" when opening universal app
See original GitHub issueHello, we switched from an app for x86_64 to an universal app. The app runs fine on all platforms when I sign them locally with my developer identity.
However, when we go through Testflight, we are greeted with a “… cannot be opened because the developer cannot be verified” message. This only happens with the universal build, the x86_64 only one works fine. And if I force-resign the app, then it also works fine.
This is how we sign:
electron-osx-sign --entitlements=./entitlements/entitlements.mac.plist --entitlements-inherit=./entitlements/entitlements.mac.inherit.plist --entitlements-loginhelper=./entitlements/entitlements.mac.inherit.plist --identity=${CERTIFICATE_DEVELOPER_SHA} --keychain=signing-cert-keychain --provisioning-profile=./embedded.provisionprofile --type=distribution "${appName}" productbuild --component "${appName}" /Applications --sign "${CERTIFICATE_INSTALLER_SHA}" "app-name-${params.UPLOAD_ARTIFACT_VERSION}.pkg"
Checking the app with the usual tools (codesign
,pkgutil
, spctl
) gives no clue to any problems. Only at runtime it doesn’t work.
I have run out of ideas to try…
Issue Analytics
- State:
- Created a year ago
- Comments:10
Top Results From Across the Web
Open a Mac app from an unidentified developer - Apple Support
In the Finder on your Mac, locate the app you want to open. Don't use Launchpad to do this. · Control-click the app...
Read more >Fix the “App can't be opened because it is from an unidentified ...
Right-click (or control-click) the application in question and choose “Open” ; Click the “Open” button at the next dialog warning to launch the ......
Read more >How to open a Mac app from an unidentified developer
Open System Preferences. Go to the Security & Privacy tab. Click on the lock and enter your password so you can make changes....
Read more >“App can't be opened because it is from an ... - YouTube
Can't open app error message on macOS Catalina. ... “ App can't be opened because it is from an unidentified developer ” -...
Read more >[Fixed]Can't be opened because it is from an unidentified ...
mojave #macbookinstall #macfixMacOS is a sophisticated operating system with a high level of security. By default, it does not allow you to ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I see, I also have no problems running the app locally when it is signed with the developer identity and notarized. However for TestFlight and the Mac Store it has to be signed either with 3rd Party Mac Developer Application or Apple Distribution certificate. And when we do this we get the above problem.
Yes, the app gets rejected for the same reason. I created a separate issue with more info since I am using electron-builder (not osx-sign directly) here:
https://github.com/electron-userland/electron-builder/issues/7171
I’ve attached a build log there which confirms signing goes well, so the problem has to be elsewhere.
Wow, happy to hear! 🙂
Actually it clicked for me when you said in the other thread that the “Move to Bin”-deleted files are hidden in Trash. I examined mine and saw my module in unsigned form. Then I knew there had to be more than one… 😃
Ok closing this.