wails: Mac Program cannot lauch
#####################################################
V1 users: If you have a technical issue, please do not open a bug this way!
Please use the wails issue command!
If you do not do this then the issue may be closed automatically.
NOTE: If your bug is related to Windows, make sure you read the Windows Developer Guide #####################################################
Description using wails build to build a program on MacOS ,saying as myapp.app. when double click myapp.app, it can not be launched. but if i doubleclick myapp.app/Contents/MocOS/myapp, it can launch correctly.
To Reproduce Steps to reproduce the behaviour:
- Go to build/bin
- Double Click on ‘myapp.app’
- The program cannot be launched
Expected behaviour myapp.app should be launched without error
Screenshots n/a
System Details
V2 users: Please add the output of wails doctor.
Additional context if i doubleclick myapp.app/Contents/MocOS/myapp, it can launch correctly.
- This issue is for Windows and I have read the Windows Developer Guide
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 18 (6 by maintainers)
I think I solved it.
I did a local build on MacOS and ran the following to see if it was signed. It wasn’t. It was “ad hoc”:
codesign -dvvv QuiverPhotos.appI already had my certificates configured on my machine, so I read out the developer ids:
Finally, I manually signed the executable and checked the signature again:
The file opens up now when I double-click it!