diff --git a/CryptoSwift.podspec b/CryptoSwift.podspec index 16f7a6f0..8592801f 100644 --- a/CryptoSwift.podspec +++ b/CryptoSwift.podspec @@ -17,4 +17,5 @@ Pod::Spec.new do |s| s.source_files = "Sources/CryptoSwift/**/*.swift" s.requires_arc = true s.resource_bundles = {'CryptoSwift' => ['Sources/CryptoSwift/PrivacyInfo.xcprivacy']} + s.pod_target_xcconfig = { 'BUILD_LIBRARY_FOR_DISTRIBUTION' => 'YES' } end diff --git a/Package.swift b/Package.swift index 06d9ed47..adea22b6 100644 --- a/Package.swift +++ b/Package.swift @@ -14,7 +14,11 @@ let package = Package( ) ], targets: [ - .target(name: "CryptoSwift", resources: [.copy("PrivacyInfo.xcprivacy")]), + .target( + name: "CryptoSwift", + resources: [.copy("PrivacyInfo.xcprivacy")], + swiftSettings: [.unsafeFlags(["-enable-library-evolution"])] + ), .testTarget(name: "CryptoSwiftTests", dependencies: ["CryptoSwift"]) ], swiftLanguageVersions: [.v5]