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

Mac M1 termainal can run, but .app crash immediately #167

Open
zouy50 opened this issue Nov 14, 2023 · 3 comments
Open

Mac M1 termainal can run, but .app crash immediately #167

zouy50 opened this issue Nov 14, 2023 · 3 comments

Comments

@zouy50
Copy link

zouy50 commented Nov 14, 2023

My Mac info is like this
MacBook Pro (13-inch, M1, 2020)
Mac OS version: 12.6.8 (21G725)

I just bundle a code, just a CLI program, println!("hello word!"),the bundle can finished.
But when I run .app, it crash immediately, even not an alert or something.

When I open the .app and run the terminal program at Contents/MacOS/, it can run successfully.

I try to find the problem use Mac Console App, I find several error like this:

Error 19:29:15.144566+0800 runningboardd RBSStateCapture remove item called for untracked item 597-559-801390 (target:[app<application.com.zouyun.personal-financial-rs.82086784.82086790(501)>:75840])
Error 19:29:15.144609+0800 runningboardd RBSStateCapture remove item called for untracked item 597-16430-801387 (target:app<application.com.zouyun.personal-financial-rs.82086784.82086790(501)>)
Error 19:29:15.144645+0800 runningboardd RBSStateCapture remove item called for untracked item 597-559-801389 (target:[app<application.com.zouyun.personal-financial-rs.82086784.82086790(501)>:75840])

@zouy50 zouy50 changed the title Mac M1 termainal can run, but .app crash imme Mac M1 termainal can run, but .app crash immediately Nov 14, 2023
@vonnieda
Copy link

Same problem, did you solve it?

I also find this:

codesign --verify --verbose ../target/release/bundle/osx/Example.app
../target/release/bundle/osx/Example.app: code has no resources but signature indicates they must be present

And I seem to get that regardless of whether I included resources or not.

@benwr
Copy link

benwr commented Feb 9, 2024

An m1 app bundled using cargo-bundle in October, which used to work, started crashing some time in the last few months. Still working on figuring out why.

@mzdk100
Copy link

mzdk100 commented Sep 2, 2024

Is there any progress? I have also encountered this problem. If I package the example hello that comes with cargo-bundle, the generated hello.app can run normally, but if it is my own project, it will not respond and the application will not start. I can confirm that running my.app/Content/MacOS/my separately is not a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants