stytchauth / stytch-ios

MIT License
31 stars 4 forks source link

New Stytch Xcode project won't build `Could not find or use auto-linked library 'swiftXPC': library 'swiftXPC' not found` #255

Open joshuakcockrell opened 6 days ago

joshuakcockrell commented 6 days ago

A brand new SwiftUI Xcode project won't build if I add Stytch as a dependency. Error message: Could not find or use auto-linked library 'swiftXPC': library 'swiftXPC' not found

Screenshot 2024-06-26 at 5 12 19 PM

This project has literally zero changes. Only added Stytch.

Steps to reproduce:

This happens if I add the -ObjC flag or not.

Screenshot 2024-06-26 at 5 13 11 PM

I tried several different versions of Stytch SDK, Everything since 0.18.0 doesn't work. Earlier ones do, for some reason.

I can add several other packages, like Firebase, Stripe, etc. and they work just fine. This issue only happens with the Stytch package.

joshuakcockrell commented 5 days ago

Updating Xcode to 15.4 fixed this for me (I was previously on Xcode 15.0)