Skip to content

Cannot launch the prebuilt file in Mac M1 (arm64) #313

Answered by hancyran
hancyran asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for the reply!

Yes, I just retried to compile the current commit using Cargo. I fixed my Cargo's network error by adding these lines to the file ~/.cargo/config.toml referring a reddit post.

`
[source.crates-io]
index = "https://github.com/rust-lang/crates.io-index" # I set the source to the official github index

[http]
proxy = "" # leaving this as a blank string resets proxy to default
`

I thought Ive added a proxy setting somewhere and this config helps me to remove it when running Cargo. After this, I can successfully run cargo build --release and directly get&run the binary file in Mac M1.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hancyran
Comment options

Answer selected by dyc3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants