Swift-JWT icon indicating copy to clipboard operation
Swift-JWT copied to clipboard

Issues with macOS Sequoia in 'Release' mode

Open Joebayld opened this issue 1 year ago • 6 comments

I have an app that reads / writes RS256 JWTs. What I'm noticing is when my app is compiled in 'Release' mode, it fails to decode JWTs. The error thrown is JWTError.failedVerification. But if I run the same app in Debug mode it's fine.

This used to work fine pre macOS 15.

Did something change?

Joebayld avatar Nov 06 '24 17:11 Joebayld

I also have the same problem. I tried changing the build settings but it didn't solve the problem.

spk-ynoda avatar Nov 13 '24 04:11 spk-ynoda

I found the issue. It's in BlueRSA. We need this to get merged but not sure anyone maintains it anymore.

https://github.com/Kitura/BlueRSA/pull/83

Joebayld avatar Nov 13 '24 04:11 Joebayld

Thanks all identifying the issue and submitting a bug fix. Swift-JWT 4.0.2 and BlueRSA 1.0.202 are pushed to SPM, hopefully addressing this issue. Please try it out and update here with the status.

Hopefully SPM works for you as I can't really maintain cocoapods anymore.

dannys42 avatar Nov 14 '24 05:11 dannys42

Screenshot 2024-12-07 at 6 17 44 PM

Error: symbols referenced by indirect symbol table entries that can't be stripped in: /Users/runner/Library/Developer/Xcode/DerivedData/Ninja-gzlzbuqxevqmysgvnbspvebnzntb/Build/Intermediates.noindex/ArchiveIntermediates/Ninja-Staging/InstallationBuildProductsLocation/Applications/Ninja-Staging.app/Ninja-Staging
_$s***CryptorECC11ECPublicKeyC3derAC***Foundation4DataV_tKcfc
_$s***CryptorECC11ECPublicKeyC3keyACSS_tKcfC
** ARCHIVE FAILED **

I get this error. What could be the issue?

numandev1 avatar Dec 07 '24 13:12 numandev1

Does anyone know when this can get pushed to cocoa pods?

AmericanBugout avatar Feb 07 '25 03:02 AmericanBugout

@numandev1 Is this still an issue for you? I'm building on macOS 15.3.2 and Xcode 16.3 and it is compiling cleanly.

swift build -c release
Fetching https://github.com/Kitura/BlueRSA.git from cache
Fetching https://github.com/Kitura/LoggerAPI.git from cache
Fetching https://github.com/Kitura/KituraContracts.git from cache
Fetching https://github.com/Kitura/BlueCryptor.git from cache
Fetching https://github.com/Kitura/BlueECC.git from cache
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/Kitura/LoggerAPI.git from cache (0.70s)
Fetched https://github.com/Kitura/KituraContracts.git from cache (0.70s)
Fetched https://github.com/Kitura/BlueRSA.git from cache (0.72s)
Fetched https://github.com/Kitura/BlueECC.git from cache (0.72s)
Fetched https://github.com/Kitura/BlueCryptor.git from cache (0.72s)
Computing version for https://github.com/Kitura/KituraContracts.git
Fetched https://github.com/apple/swift-log.git from cache (0.73s)
Computed https://github.com/Kitura/KituraContracts.git at 2.0.1 (1.30s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 2.0.0 (0.54s)
Computing version for https://github.com/Kitura/BlueECC.git
Computed https://github.com/Kitura/BlueECC.git at 1.2.200 (0.54s)
Computing version for https://github.com/Kitura/BlueCryptor.git
Computed https://github.com/Kitura/BlueCryptor.git at 2.0.1 (0.52s)
Computing version for https://github.com/Kitura/BlueRSA.git
Computed https://github.com/Kitura/BlueRSA.git at 1.0.202 (0.55s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.4.0 (0.52s)
Removing https://github.com/Kitura/OpenSSL.git
Creating working copy for https://github.com/Kitura/BlueRSA.git
Working copy of https://github.com/Kitura/BlueRSA.git resolved at 1.0.202
Building for production...
[15/15] Compiling SwiftJWT BlueECDSA.swift
Build complete! (14.38s)

dannys42 avatar Apr 03 '25 02:04 dannys42