Electron Mac Application Code sign Issue

Hi,

I am using
Electron sdk version - 5.7.1.644 for my application.
I am able to generate .app file and now I want to sign the application with Developer ID Application certificate.

My current approach is

codesign --force --verify --verbose --entitlements ./app/entitlements/entitlements.plist  --options=runtime --sign "Developer ID Application: XXXYYY, ABC (Z1234)" ./app/OutApp/xyz-darwin-x64/xyz.app

I am using this plist file

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
 <dict>
	<key>CFBundleDevelopmentRegion</key>
	<string>$(DEVELOPMENT_LANGUAGE)</string>
	<key>CFBundleExecutable</key>
	<string>$(EXECUTABLE_NAME)</string>
	<key>CFBundleIconFile</key>
	<string></string>
	<key>CFBundleIdentifier</key>
	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
	<key>CFBundleInfoDictionaryVersion</key>
	<string>6.0</string>
	<key>CFBundleName</key>
	<string>$(PRODUCT_NAME)</string>
	<key>CFBundlePackageType</key>
	<string>APPL</string>
	<key>CFBundleShortVersionString</key>
	<string>$(MARKETING_VERSION)</string>
	<key>CFBundleVersion</key>
	<string>$(CURRENT_PROJECT_VERSION)</string>
	<key>LSApplicationCategoryType</key>
	<string>public.app-category.business</string>
	<key>LSMinimumSystemVersion</key>
	<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
	<key>NSAppTransportSecurity</key>
	<dict>
		<key>NSAllowsArbitraryLoads</key>
		<true/>
	</dict>
	<key>NSAppleEventsUsageDescription</key>
	<string></string>
	<key>NSCameraUsageDescription</key>
	<string>In order for participants to see you, requires access to your camera.</string>
	<key>NSHumanReadableCopyright</key>
	<string>Copyright © All rights reserved.</string>
	<key>NSMainStoryboardFile</key>
	<string>Main</string>
	<key>NSMicrophoneUsageDescription</key>
	<string>In order to speak to participants, requires access to your microphone.</string>
	<key>NSPrincipalClass</key>
	<string>NSApplication</string>
</dict>
</plist>

NOTE : I copied the plist file source from the native macOS sdk sample application.

ERROR :

code object is not signed at all
In subcomponent: App-Path/app/OutApp/xyz-darwin-x64/xyz.app/Contents/Frameworks/xyz Helper.app

Thank you

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.