From 36e84530a4a540c226e687786b2096e7c082e169 Mon Sep 17 00:00:00 2001 From: mdmathias Date: Wed, 13 Mar 2024 13:27:12 -0700 Subject: [PATCH] Fix PrivacyInfo bundling issues (#241) --- GTMAppAuth.podspec | 3 +++ .../Sources/Resources/PrivacyInfo.xcprivacy | 0 Package.swift | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) rename PrivacyInfo.xcprivacy => GTMAppAuth/Sources/Resources/PrivacyInfo.xcprivacy (100%) diff --git a/GTMAppAuth.podspec b/GTMAppAuth.podspec index 91c2442..ba4e4f1 100644 --- a/GTMAppAuth.podspec +++ b/GTMAppAuth.podspec @@ -21,6 +21,9 @@ requests with AppAuth. s.source = { :git => 'https://github.com/google/GTMAppAuth.git', :tag => s.version } s.prefix_header_file = false s.source_files = 'GTMAppAuth/Sources/**/*.swift' + s.resource_bundles = { + "GTMAppAuth_Privacy" => "GTMAppAuth/Sources/Resources/PrivacyInfo.xcprivacy" + } ios_deployment_target = '10.0' osx_deployment_target = '10.12' diff --git a/PrivacyInfo.xcprivacy b/GTMAppAuth/Sources/Resources/PrivacyInfo.xcprivacy similarity index 100% rename from PrivacyInfo.xcprivacy rename to GTMAppAuth/Sources/Resources/PrivacyInfo.xcprivacy diff --git a/Package.swift b/Package.swift index be09789..63e0495 100644 --- a/Package.swift +++ b/Package.swift @@ -43,7 +43,7 @@ let package = Package( .product(name: "AppAuthCore", package: "AppAuth-iOS") ], path: "GTMAppAuth/Sources", - resources: [.copy("../../PrivacyInfo.xcprivacy")], + resources: [.copy("Resources/PrivacyInfo.xcprivacy")], linkerSettings: [ .linkedFramework("Security"), ]