burtonageo/cargo-bundle

Mac M1 termainal can run, but .app crash immediately

zouy50 opened this issue · 3 comments

zouy50 commented

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])

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.

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.