Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

electron-forge error occurs as soon as i open my app made via make coomand when used nutjs node native module #3369

Open
3 tasks done
pycraft114 opened this issue Oct 3, 2023 · 1 comment
Labels
code-signing native-modules platform/macOS plugin/webpack Issues or pull requests related to first-party webpack plugins/templates question

Comments

@pycraft114
Copy link

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Electron Forge version

6.4.1

Electron version

26.1.0

Operating system

macos ventura 13.3.1

Last known working Electron Forge version

No response

Expected behavior

Electron-forge successfully builds with use of nutjs node native module by electron-forge start command

Actual behavior

but as soon as i build with osxSign and osxNotarize

Uncaught Exception:
Error: dlopen(/var/folders/ns/tys7qr996jbg7h577n3yr_fr0000gn/T/.com.electron.write.7oJreN, 0x0001): tried: '/var/folders/ns/tys7qr996jbg7h577n3yr_fr0000gn/T/.com.electron.write.7oJreN' (code signature in <E490A615-E132-35C0-AFD2-1B55963F0668> '/private/var/folders/ns/tys7qr996jbg7h577n3yr_fr0000gn/T/.com.electron.write.7oJreN' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), '/System/Volumes/Preboot/Cryptexes/OS/var/folders/ns/tys7qr996jbg7h577n3yr_fr0000gn/T/.com.electron.write.7oJreN' (no such file), '/var/folders/ns/tys7qr996jbg7h577n3yr_fr0000gn/T/.com.electron.write.7oJreN' (code signature in <E490A615-E132-35C0-AFD2-1B55963F0668> '/private/var/folders/ns/tys7qr996jbg7h577n3yr_fr0000gn/T/.com.electron.write.7oJreN' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), '/private/var/folders/ns/tys7qr996jbg7h577n3yr_fr0000gn/T/.com.electron.write.7oJreN' (code signature in <E490A615-E132-35C0-AFD2-1B55963F0668> '/private/var/folders/ns/tys7qr996jbg7h577n3yr_fr0000gn/T/.com.electron.write.7oJreN' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), '/System/Volumes/Preboot/Cryptexes/OS/private/var/folders/ns/tys7qr996jbg7h577n3yr_fr0000gn/T/.com.electron.write.7oJreN' (no such file), '/private/var/folders/ns/tys7qr996jbg7h577n3yr_fr0000gn/T/.com.electron.write.7oJreN' (code signature in <E490A615-E132-35C0-AFD2-1B55963F0668> '/private/var/folders/ns/tys7qr996jbg7h577n3yr_fr0000gn/T/.com.electron.write.7oJreN' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?))
at process.func [as dlopen] (node:electron/js2c/asar_bundle:2:1822)
at Object.<anonymous> (node:internal/modules/cjs/loader:1356:18)
at Object.func [as .node] (node:electron/js2c/asar_bundle:2:2049)
at Module.load (node:internal/modules/cjs/loader:1126:32)
at node:internal/modules/cjs/loader:967:12
at Function._load (node:electron/js2c/asar_bundle:2:13330)
at Module.require (node:internal/modules/cjs/loader:1150:19)
at require (node:internal/modules/cjs/helpers:110:18)
at 1914 (/Volumes/Write/Write.app/Contents/Resources/app.asar/.webpack/main/index.js:6602:14)
at __webpack_require__ (/Volumes/Write/Write.app/Contents/Resources/app.asar/.webpack/main/index.js:48469:42)

this runtime error occurs

index.js:6602 line is the line that has a require with build nutjs package

Steps to reproduce

  • import any function from nutjs
  • run make command with osxSign and osxNotarize
  • see error

Additional information

No response

@erikian
Copy link
Member

erikian commented Oct 20, 2023

Could you create a Github repository with a minimal repro?

@erikian erikian added question plugin/webpack Issues or pull requests related to first-party webpack plugins/templates platform/macOS code-signing native-modules labels Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-signing native-modules platform/macOS plugin/webpack Issues or pull requests related to first-party webpack plugins/templates question
Projects
None yet
Development

No branches or pull requests

2 participants