auth0 / SimpleKeychain

A simple Keychain wrapper for iOS, macOS, tvOS, and watchOS
https://auth0.github.io/SimpleKeychain
MIT License
587 stars 76 forks source link

Building iOS Framework with Auth0 dependency results in SimpleKeychain namespace errors #181

Closed reaperdtme closed 1 year ago

reaperdtme commented 1 year ago

Checklist

Description

Our SDK's iOS Framework is failing to build on latest XCode/iOS due to SimpleKeychain 1.0.1. We rely on it indirectly through Auth0 2.3.2

target-sdk-name iphonesimulator16.4
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:25:26: error: 'SimpleKeychain' is not a member type of struct 'SimpleKeychain.SimpleKeychain'
extension SimpleKeychain.SimpleKeychain {
          ~~~~~~~~~~~~~~ ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:22:15: note: 'SimpleKeychain' declared here
public struct SimpleKeychain {
              ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:29:26: error: 'SimpleKeychain' is not a member type of struct 'SimpleKeychain.SimpleKeychain'
extension SimpleKeychain.SimpleKeychain {
          ~~~~~~~~~~~~~~ ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:22:15: note: 'SimpleKeychain' declared here
public struct SimpleKeychain {
              ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:33:26: error: 'SimpleKeychain' is not a member type of struct 'SimpleKeychain.SimpleKeychain'
extension SimpleKeychain.SimpleKeychain {
          ~~~~~~~~~~~~~~ ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:22:15: note: 'SimpleKeychain' declared here
public struct SimpleKeychain {
              ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:37:26: error: 'SimpleKeychain' is not a member type of struct 'SimpleKeychain.SimpleKeychain'
extension SimpleKeychain.SimpleKeychain {
          ~~~~~~~~~~~~~~ ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:22:15: note: 'SimpleKeychain' declared here
public struct SimpleKeychain {
              ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:66:26: error: 'SimpleKeychainError' is not a member type of struct 'SimpleKeychain.SimpleKeychain'
extension SimpleKeychain.SimpleKeychainError : Swift.Equatable {
          ~~~~~~~~~~~~~~ ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:22:15: note: 'SimpleKeychain' declared here
public struct SimpleKeychain {
              ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:69:26: error: 'SimpleKeychainError' is not a member type of struct 'SimpleKeychain.SimpleKeychain'
extension SimpleKeychain.SimpleKeychainError {
          ~~~~~~~~~~~~~~ ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:22:15: note: 'SimpleKeychain' declared here
public struct SimpleKeychain {
              ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:73:26: error: 'Accessibility' is not a member type of struct 'SimpleKeychain.SimpleKeychain'
extension SimpleKeychain.Accessibility : Swift.Equatable {}
          ~~~~~~~~~~~~~~ ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:22:15: note: 'SimpleKeychain' declared here
public struct SimpleKeychain {
              ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:74:26: error: 'Accessibility' is not a member type of struct 'SimpleKeychain.SimpleKeychain'
extension SimpleKeychain.Accessibility : Swift.Hashable {}
          ~~~~~~~~~~~~~~ ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:22:15: note: 'SimpleKeychain' declared here
public struct SimpleKeychain {
              ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:67:46: error: 'SimpleKeychainError' is not a member type of struct 'SimpleKeychain.SimpleKeychain'
  public static func == (lhs: SimpleKeychain.SimpleKeychainError, rhs: SimpleKeychain.SimpleKeychainError) -> Swift.Bool
                              ~~~~~~~~~~~~~~ ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:22:15: note: 'SimpleKeychain' declared here
public struct SimpleKeychain {
              ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:67:87: error: 'SimpleKeychainError' is not a member type of struct 'SimpleKeychain.SimpleKeychain'
  public static func == (lhs: SimpleKeychain.SimpleKeychainError, rhs: SimpleKeychain.SimpleKeychainError) -> Swift.Bool
                                                                       ~~~~~~~~~~~~~~ ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:22:15: note: 'SimpleKeychain' declared here
public struct SimpleKeychain {
              ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:23:134: error: 'Accessibility' is not a member type of struct 'SimpleKeychain.SimpleKeychain'
  public init(service: Swift.String = Bundle.main.bundleIdentifier!, accessGroup: Swift.String? = nil, accessibility: SimpleKeychain.Accessibility = .afterFirstUnlock, accessControlFlags: Security.SecAccessControlCreateFlags? = nil, context: LocalAuthentication.LAContext? = nil, synchronizable: Swift.Bool = false, attributes: [Swift.String : Any] = [:])
                                                                                                                      ~~~~~~~~~~~~~~ ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:22:15: note: 'SimpleKeychain' declared here
public struct SimpleKeychain {
              ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:54:61: error: 'SimpleKeychainError' is not a member type of struct 'SimpleKeychain.SimpleKeychain'
  public static let operationNotImplemented: SimpleKeychain.SimpleKeychainError
                                             ~~~~~~~~~~~~~~ ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:22:15: note: 'SimpleKeychain' declared here
public struct SimpleKeychain {
              ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:55:55: error: 'SimpleKeychainError' is not a member type of struct 'SimpleKeychain.SimpleKeychain'
  public static let invalidParameters: SimpleKeychain.SimpleKeychainError
                                       ~~~~~~~~~~~~~~ ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:22:15: note: 'SimpleKeychain' declared here
public struct SimpleKeychain {
              ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:56:50: error: 'SimpleKeychainError' is not a member type of struct 'SimpleKeychain.SimpleKeychain'
  public static let userCanceled: SimpleKeychain.SimpleKeychainError
                                  ~~~~~~~~~~~~~~ ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:22:15: note: 'SimpleKeychain' declared here
public struct SimpleKeychain {
              ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:57:54: error: 'SimpleKeychainError' is not a member type of struct 'SimpleKeychain.SimpleKeychain'
  public static let itemNotAvailable: SimpleKeychain.SimpleKeychainError
                                      ~~~~~~~~~~~~~~ ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:22:15: note: 'SimpleKeychain' declared here
public struct SimpleKeychain {
              ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:58:48: error: 'SimpleKeychainError' is not a member type of struct 'SimpleKeychain.SimpleKeychain'
  public static let authFailed: SimpleKeychain.SimpleKeychainError
                                ~~~~~~~~~~~~~~ ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:22:15: note: 'SimpleKeychain' declared here
public struct SimpleKeychain {
              ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:59:51: error: 'SimpleKeychainError' is not a member type of struct 'SimpleKeychain.SimpleKeychain'
  public static let duplicateItem: SimpleKeychain.SimpleKeychainError
                                   ~~~~~~~~~~~~~~ ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:22:15: note: 'SimpleKeychain' declared here
public struct SimpleKeychain {
              ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:60:50: error: 'SimpleKeychainError' is not a member type of struct 'SimpleKeychain.SimpleKeychain'
  public static let itemNotFound: SimpleKeychain.SimpleKeychainError
                                  ~~~~~~~~~~~~~~ ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:22:15: note: 'SimpleKeychain' declared here
public struct SimpleKeychain {
              ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:61:59: error: 'SimpleKeychainError' is not a member type of struct 'SimpleKeychain.SimpleKeychain'
  public static let interactionNotAllowed: SimpleKeychain.SimpleKeychainError
                                           ~~~~~~~~~~~~~~ ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:22:15: note: 'SimpleKeychain' declared here
public struct SimpleKeychain {
              ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:62:50: error: 'SimpleKeychainError' is not a member type of struct 'SimpleKeychain.SimpleKeychain'
  public static let decodeFailed: SimpleKeychain.SimpleKeychainError
                                  ~~~~~~~~~~~~~~ ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:22:15: note: 'SimpleKeychain' declared here
public struct SimpleKeychain {
              ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:63:43: error: 'SimpleKeychainError' is not a member type of struct 'SimpleKeychain.SimpleKeychain'
  public static let other: SimpleKeychain.SimpleKeychainError
                           ~~~~~~~~~~~~~~ ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:22:15: note: 'SimpleKeychain' declared here
public struct SimpleKeychain {
              ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:64:45: error: 'SimpleKeychainError' is not a member type of struct 'SimpleKeychain.SimpleKeychain'
  public static let unknown: SimpleKeychain.SimpleKeychainError
                             ~~~~~~~~~~~~~~ ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:22:15: note: 'SimpleKeychain' declared here
public struct SimpleKeychain {
              ^
/Users/zaiddaghestani/Library/Developer/Xcode/DerivedData/InAppChat-aoeogmlunlplijccjrdaeoewqjmo/Build/Intermediates.noindex/ArchiveIntermediates/InAppChat/IntermediateBuildFilesPath/SimpleKeychain.build/Release-iphonesimulator/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.private.swiftinterface:1:1: error: failed to verify module interface of 'SimpleKeychain' due to the errors above; the textual interface may be broken by project issues or a compiler bug
// swift-interface-format-version: 1.0
^

Reproduction

  1. Create an iOS Framework
  2. Depend on auth0 via SwiftPM
  3. Compile
    xcodebuild archive \
    -scheme InAppChat \
    -destination "generic/platform=iOS" \
    -archivePath ../build/InAppChat-iOS \
    SKIP_INSTALL=NO \
    BUILD_LIBRARY_FOR_DISTRIBUTION=YES

SimpleKeychain version

1.0.1

Platform

iOS

Platform version(s)

15+

Xcode version

14.3

Package manager

SPM

Widcket commented 1 year ago

Hi @lightchaser411, thanks for raising this.

BUILD_LIBRARY_FOR_DISTRIBUTION enables library evolution. We don't recommend building the library with library evolution enabled. See https://github.com/auth0/SimpleKeychain/pull/172.