electron / osx-sign

Codesign Electron macOS apps
BSD 2-Clause "Simplified" License
565 stars 96 forks source link

⨯ Cannot read property 'com.apple.security.app-sandbox' of null #252

Closed xintengbao closed 2 years ago

xintengbao commented 2 years ago

⨯ Cannot read property 'com.apple.security.app-sandbox' of null failedTask=build stackTrace=TypeError: Cannot read property 'com.apple.security.app-sandbox' of null at preAutoEntitlements (/Users/x00599838/jenkins_works/workspace/LinkNowMac_compile/EducationCenterWeLinkLitePC/node_modules/app-builder-lib/electron-osx-sign/util-entitlements.js:34:20) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:93:5) at /Users//node_modules/app-builder-lib/electron-osx-sign/sign.js:383:9 at MacPackager.sign (/Users//node_modules/app-builder-lib/src/macPackager.ts:292:5) From previous event: 11:35:05 at processImmediate (internal/timers.js:461:21) 11:35:05 From previous event: 11:35:05 at MacPackager.signApp (/Users/x00599838/jenkins_works/workspace/LinkNowMac_compile/EducationCenterWeLinkLitePC/node_modules/app-builder-lib/src/macPackager.ts:415:27) ……………… package.json configuration:

"mac": {
  "icon": "build/icons/icon.icns",
  "hardenedRuntime" :true,
  "gatekeeperAssess": false,
  "identity":"Hua***s Co., Ltd.",
  "entitlements": "scripts/entitlements.mac.plist",
  "entitlementsInherit": "scripts/entitlements.mac.plist"      
},

What is the reason for the error reported by the electronic application in sign? What is the meaning of the error? I need help very much!

MarshallOfSound commented 2 years ago

It means your entitlements.mac.plist is invalid