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

DEPLOY: rye-fyne binary error on macOS 11.7.10 : bad CPU type #35

Open
HFolkertH opened this issue Oct 8, 2024 · 4 comments
Open

DEPLOY: rye-fyne binary error on macOS 11.7.10 : bad CPU type #35

HFolkertH opened this issue Oct 8, 2024 · 4 comments

Comments

@HFolkertH
Copy link

hi

installed the latest binary from the macos-amd64.tar on my macbook Air but got this error when In started rye-fyne: " zsh: bad CPU type in executable: rye-fyne" . Rye itself runs fine.

My macbook specs:
image

dual-core-i5 should be an AMD64.

Any ideas about what went wrong?

@refaktor
Copy link
Owner

refaktor commented Oct 9, 2024

Hm ... I don't have any experiences with MacOS. I found this about running on Apple silicon:
https://apple.stackexchange.com/questions/408375/zsh-bad-cpu-type-in-executable

but if it's Intel Core i5 I assume it's not Apple silicon. Can you check if rye-fyne binary is 64bit with file fye-fyne. Do you think it could be any type code-signing restriction? I will compare build method for regular Rye and rye-fyne. Maybe we find something there.

@refaktor refaktor changed the title rye-fyne binary gives an error DEPLOY: rye-fyne binary error on macOS 11.7.10 : bad CPU type Oct 9, 2024
@HFolkertH
Copy link
Author

my macbook needs a x86_64 version of the rye-fyne binary. The 28 release only shows a downloadable amd64
The rye binary is already a x86_64 and works fine on my macbook

image

@refaktor
Copy link
Owner

On your screenshot I see arm64 ... I think that MacOS that github workflow spins up is based on arm so it compiles an arm binary, but I named it amd64 which is equivalent of x86_64. I made go on this mac cross compile to amd64 now so I think it should work. Please try the latest release. I will add arm64 back next time for those who have that.

@HFolkertH
Copy link
Author

I was able to build the rye-fyne on my macbook and now it runs ok. But to build it an essential part of your instruction is missing:

image

It should also mention that you first need to go (CD) to your Rye-folder and from there start the git download. Then the rye-fyne folder will be created as a subfolder in the rye-folder and the ./build will next do its job. Also the last comment in this screenshot was confusing: mentioning "bin/fyne/rye" wich does not exist.

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

2 participants