wailsapp / wails

Create beautiful applications using Go
https://wails.io
MIT License
25.25k stars 1.21k forks source link

Packaged app under MacOS doesnt work #472

Closed WizardOfCodez closed 4 years ago

WizardOfCodez commented 4 years ago

Description

We were successfully able to normally build our app under MacOS Catalina. If we choose the -p flag process runs through but app starts and crashes instantly. It also seems that the problem only occurs in our project - initial project is fine. Is there any way to debug this?

System Details

Name Value
Wails Version v1.7.1
Go Version go1.14.4
Platform darwin
Arch amd64
GO111MODULE on
GCC 11.0.3
Npm 6.14.5
Node v13.8.0
brandonwkipp commented 4 years ago

You can try building the -d flag, which shows some debugging output in a terminal.

WizardOfCodez commented 4 years ago

@brandonwkipp thanks for the tip. Problem is: building and packaging runs through without any errors. It is just that the .app file starts and crashes immediately. The linux executable on the other hand works without any problems.

Also: If I "show package contents" and execute the executable under /MacOS the app also runs.

leaanthony commented 4 years ago

Sorry you're experiencing this. Could you let us know what version of MacOS it is please?

WizardOfCodez commented 4 years ago

Bildschirmfoto 2020-08-09 um 22 59 07 Hi @leaanthony, I'm running on Catalina (10.15.6) - I can also give you access to the repo if you want to replicate the issue.

Cheers!

WizardOfCodez commented 4 years ago

We figured it out by ourselves. Error was because of usage of a wrong and relative path to our file storage. App crashed because of write-protected folder.

leaanthony commented 4 years ago

Thanks so much for letting us know about this! What steps did you take to debug this? I'd love to capture this information for the website.

WizardOfCodez commented 4 years ago

On mac you can debug an .app package by running it through the terminal like this:

open yourapp.app - then you will get some error messages.