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

Getting an error when building in a M1, using SPM and latest OAuth2 version available #419

Open
pballada opened this issue Apr 18, 2024 · 4 comments

Comments

@pballada
Copy link

Build failed because OAuth2.swiftmodule is missing a required architecture. Would you like to build for Rosetta instead?

Ensure all targets are configured to build for standard architectures. If your project uses external dependencies, contact those vendors to provide updated copies built to support all architectures.

You can control the visibility of architecture-specific run destinations in the Product > Destination menu.

@ossus-lib
Copy link
Collaborator

Can you paste the whole error? 5.3.5 seems build fine on M Macs.

@pballada
Copy link
Author

These are the errors:
Screenshot 2024-04-22 at 16 37 21
Screenshot 2024-04-22 at 16 32 15

Followed Apple recommendations.
https://developer.apple.com/documentation/technotes/tn3117-resolving-build-errors-for-apple-silicon

Right now I'm using Rosetta simulators for the moment to avoid the issue.

Will keep investigating, I also use cocoapods, so maybe it's related to that.

@pballada
Copy link
Author

I think the problem it's related to SPM and not providing an xcframework, happened the same with another SPM repo.
For now I went back to integrate your library with cocoapods, which prevents the error.
(event I know it's unsupported).

Thanks!

@ossus-lib
Copy link
Collaborator

How are you building it? It works fine for me from Xcode for targets Mac and iOS, also from the Terminal with swift build.

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