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

Can't archive project on M1 #28

Open
damiandudycz opened this issue Aug 21, 2024 · 2 comments
Open

Can't archive project on M1 #28

damiandudycz opened this issue Aug 21, 2024 · 2 comments

Comments

@damiandudycz
Copy link

Application works fine when debugging, but when I try to archive it for macOS, it shows error: unknown target CPU 'apple-m1' in c++ module. Anyone knows how to solve this?

@guinmoon
Copy link
Owner

Hi. See if there's anything extra in Package.swift. I've been experimenting with it lately.

@damiandudycz
Copy link
Author

damiandudycz commented Aug 22, 2024

I have noticed that I can actually archive it from terminal, while Xcode fails. Looks like for some reason Xcode uses some different version of compiler or settings. Anyway, on M1, I was able to archive it using: xcodebuild -target macOS -scheme ProjectName archive

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