DevMate / DevMateKit

Development and Distribution Assistance Platform for Mac Developers
https://devmate.com
21 stars 3 forks source link

codesigning issue #46

Open gdbing opened 5 years ago

gdbing commented 5 years ago

I've been having trouble codesigning my app, and I traced the issue to DevMateKit. I couldn't find anything wrong with my build settings so I tried building the Example projects included in the repo and I'm seeing the same issue with them.

e.g. I build ActivationsExample.app, attach it to an email and send it to myself so it will be quarantined by gatekeeper.

When I double click it to open it, I get a message which says:

“ActivationsExample.app” can’t be opened because it is from an unidentified developer.

checking it with codesign suggests it is an issue with the framework bundle format

$ codesign --verify --deep --strict --verbose=2 ActivationsExample.app/

ActivationsExample.app/: bundle format is ambiguous (could be app or framework) In subcomponent: /Users/graham/Downloads/ActivationsExample.app/Contents/Frameworks/DevMateKit.framework/Versions/Current/Frameworks/DevMateIssuesReporter.framework/Versions/Current/Frameworks/CrashReporter.framework

spctl confirms, it is rejected by gatekeeper

$ spctl -a -t exec -vv ActivationsExample.app/

ActivationsExample.app/: rejected origin=Mac Developer: grrraham@gmail.com (4Y764JDQSC)

dimaty commented 5 years ago

Thanks for your feedback. We'll take a look at this issue. For now feel free to re-sing all DevMate framework with your certificate.

dimaty commented 5 years ago

Can you recheck it with new version (1.9.2)?

gdbing commented 5 years ago

Getting the same error message when I try to open it but different output from codesign and spctl

$ codesign --verify --deep --strict --verbose=2 ActivationsExample.app/

--prepared:/Users/graham/Downloads/ActivationsExample.app/Contents/Frameworks/DevMateKit.framework/Versions/Current/. --prepared:/Users/graham/Downloads/ActivationsExample.app/Contents/Frameworks/DevMateKit.framework/Versions/Current/XPCServices/com.devmate.UpdateInstaller.xpc --prepared:/Users/graham/Downloads/ActivationsExample.app/Contents/Frameworks/DevMateKit.framework/Versions/Current/Frameworks/DevMateIssuesReporter.framework/Versions/Current/. --prepared:/Users/graham/Downloads/ActivationsExample.app/Contents/Frameworks/DevMateKit.framework/Versions/Current/Frameworks/DevMateIssuesReporter.framework/Versions/Current/Frameworks/CrashReporter.framework/Versions/Current/. --validated:/Users/graham/Downloads/ActivationsExample.app/Contents/Frameworks/DevMateKit.framework/Versions/Current/Frameworks/DevMateIssuesReporter.framework/Versions/Current/Frameworks/CrashReporter.framework/Versions/Current/. ActivationsExample.app/: a sealed resource is missing or invalid In subcomponent: /Users/graham/Downloads/ActivationsExample.app/Contents/Frameworks/DevMateKit.framework/Versions/Current/Frameworks/DevMateIssuesReporter.framework file added: /Users/graham/Downloads/ActivationsExample.app/Contents/Frameworks/DevMateKit.framework/Versions/Current/Frameworks/DevMateIssuesReporter.framework/Versions/Current/Resources/pt.lproj file missing: /Users/graham/Downloads/ActivationsExample.app/Contents/Frameworks/DevMateKit.framework/Versions/Current/Frameworks/DevMateIssuesReporter.framework/Versions/Current/Headers/DMIssue.h file missing: /Users/graham/Downloads/ActivationsExample.app/Contents/Frameworks/DevMateKit.framework/Versions/Current/Frameworks/DevMateIssuesReporter.framework/Versions/Current/Headers/DMIssueReport.h file missing: /Users/graham/Downloads/ActivationsExample.app/Contents/Frameworks/DevMateKit.framework/Versions/Current/Frameworks/DevMateIssuesReporter.framework/Versions/Current/Headers/DMIssuesReporter.h file missing: /Users/graham/Downloads/ActivationsExample.app/Contents/Frameworks/DevMateKit.framework/Versions/Current/Frameworks/DevMateIssuesReporter.framework/Versions/Current/Headers/DMReport.h file missing: /Users/graham/Downloads/ActivationsExample.app/Contents/Frameworks/DevMateKit.framework/Versions/Current/Frameworks/DevMateIssuesReporter.framework/Versions/Current/Modules/module.modulemap

and

$ spctl -a -t exec -vv ActivationsExample.app/

ActivationsExample.app/: a sealed resource is missing or invalid

dimaty commented 5 years ago

What is the way you are getting DevMateKit (just download, cocoapods, carthage)? Is it full version or MAS?

gdbing commented 5 years ago

Cloned this repo, trying to build from Examples.xcodeproj

xjbeta commented 5 years ago

Version 1.9.2 1.9.1 does not have this problem carthage update --platform macOS DevMateKit check the sign with 'RB App Checker Lite'

dimaty commented 5 years ago

Should be fixed with v1.9.3.