AzureAD / microsoft-authentication-library-for-objc

Microsoft Authentication Library (MSAL) for iOS and macOS
http://aka.ms/aadv2
MIT License
263 stars 142 forks source link

SwiftUI previews crashing because of MSAL dependency #1565

Closed mapedd closed 2 years ago

mapedd commented 2 years ago

Hello everyone

I'm using MSAL with SwiftPM, Xcode 14.

I'm getting this crash when trying to use SwiftUI previews:

HumanReadableSwiftError

SettingsError: noExecutablePath(<IDESwiftPackageStaticLibraryProductBuildable:ObjectIdentifier(0x0000600016e21980):'MSAL'>)

Anybody seen this and have any idea how to fix that?

hybridcattt commented 2 years ago

The same issue is happening in AppCenter, and they've prepared a fix: https://github.com/microsoft/appcenter-sdk-apple/pull/2433

Please make the same fix here so we can continue using SwiftUI previews 🙏

hybridcattt commented 2 years ago

@mapedd FYI the problem with MSAL specifically seems to go away on Xcode 14.1 beta 🎉 The fix for AppCenter is still needed if you're using that.

antonioalwan commented 2 years ago

Issue resolved