OAuth2 icon indicating copy to clipboard operation
OAuth2 copied to clipboard

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

Open pballada opened this issue 1 year ago • 4 comments

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.

pballada avatar Apr 18 '24 08:04 pballada

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

ossus-lib avatar Apr 20 '24 09:04 ossus-lib

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 avatar Apr 22 '24 14:04 pballada

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!

pballada avatar Apr 23 '24 09:04 pballada

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

ossus-lib avatar Apr 23 '24 11:04 ossus-lib