@@ -188,9 +188,9 @@ extension FrameworkBundleAssembler {
188188 if let resourceBundleName = sourceContext. resourceBundlePath? . basename {
189189 let resourceBundlePath = destinationResourcesPath. appending ( component: resourceBundleName)
190190 // A resource bundle of versioned bundle framework has "Contents/Resources" directory.
191- try extractPrivacyInfoFromEmbeddedResourceBundleToFrameworkIfExists (
192- resourceBundlePath : resourceBundlePath ,
193- relativePrivacyInfoPath : TSCRelativePath ( validating : " Contents/Resources/PrivacyInfo.xcprivacy " )
191+ try extractPrivacyInfoIfExists (
192+ from : TSCRelativePath ( validating : " Contents/Resources/PrivacyInfo.xcprivacy " ) ,
193+ in : resourceBundlePath
194194 )
195195 }
196196 } else {
@@ -204,9 +204,9 @@ extension FrameworkBundleAssembler {
204204 )
205205
206206 if let copiedResourceBundlePath {
207- try extractPrivacyInfoFromEmbeddedResourceBundleToFrameworkIfExists (
208- resourceBundlePath : copiedResourceBundlePath ,
209- relativePrivacyInfoPath : TSCRelativePath ( validating : " PrivacyInfo.xcprivacy " )
207+ try extractPrivacyInfoIfExists (
208+ from : TSCRelativePath ( validating : " PrivacyInfo.xcprivacy " ) ,
209+ in : copiedResourceBundlePath
210210 )
211211 }
212212 }
@@ -238,9 +238,9 @@ extension FrameworkBundleAssembler {
238238 /// Extracts PrivacyInfo.xcprivacy to expected location (if exists in the resource bundle).
239239 ///
240240 /// - seealso: https://developer.apple.com/documentation/bundleresources/adding-a-privacy-manifest-to-your-app-or-third-party-sdk#Add-a-privacy-manifest-to-your-framework
241- private func extractPrivacyInfoFromEmbeddedResourceBundleToFrameworkIfExists (
242- resourceBundlePath : TSCAbsolutePath ,
243- relativePrivacyInfoPath : TSCRelativePath
241+ private func extractPrivacyInfoIfExists (
242+ from relativePrivacyInfoPath : TSCRelativePath ,
243+ in resourceBundlePath : TSCAbsolutePath
244244 ) throws {
245245 let privacyInfoPath = resourceBundlePath. appending ( relativePrivacyInfoPath)
246246 if fileSystem. exists ( privacyInfoPath) {
0 commit comments