matomo-org / matomo-sdk-ios

Matomo iOS, tvOS and macOS SDK: a Matomo tracker written in Swift
MIT License
388 stars 164 forks source link

Fix: PrivacyInfo.xcprivacy is not linked when importing by cocoapods #453

Closed krazzbeluh closed 4 months ago

krazzbeluh commented 5 months ago

As mentionned by qasimmajeed in issue #447 (SDKs that require a privacy manifest and signature), the privacy manifest is not linked in resources when importing MatomoTracker via cocoapods.

The goal of this PR is to link the file privacy manifest in the resources bundle when importing the lib via cocoapods.

Testing :

  1. import MatomoTracker using my branch (pod 'MatomoTracker', git: 'https://github.com/krazzbeluh/matomo-sdk-ios.git', :branch => 'fix/privacy-manifest-is-not-linked-with-cocoapods')
  2. pod install
  3. The PrivacyInfo.xcprivacy file should be visible in Pods/Pods/MatomoTracker/Resources