cargo-bundle icon indicating copy to clipboard operation
cargo-bundle copied to clipboard

Mac M1 termainal can run, but .app crash immediately

Open zouy50 opened this issue 1 year ago • 3 comments

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 avatar Nov 14 '23 11:11 zouy50

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.

vonnieda avatar Jan 16 '24 04:01 vonnieda

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.

benwr avatar Feb 09 '24 03:02 benwr