devicekit / DeviceKit

DeviceKit is a value-type replacement of UIDevice.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Please use cocoapod resource_bundles for PrivacyInfo

RayJiang16 opened this issue · comments

like sentry getsentry/sentry-cocoa#3651
otherwise we cannot build project

How did you adapt this library? @RayJiang16

I added PrivacyInfo.xcprivacy to the main project.
This is a demo that cannot be build.
TestPrivacyInfo.zip

please use

s.resource_bundles = {"DeviceKit" => ["Source/PrivacyInfo.xcprivacy"]}

instead of

s.resources                  = 'Source/PrivacyInfo.xcprivacy'

Otherwise, the PrivacyInfo file in the main project will be overwritten.

Resolved in #397
I guess we may use fork repo as a workaround for now

  # TODO: Restore when the issue is resolved
  # https://github.com/devicekit/DeviceKit/issues/396
  # https://github.com/devicekit/DeviceKit/pull/397
  pod 'DeviceKit', :git => 'https://github.com/RayJiang16/DeviceKit', :commit => 'd0033296a30edfb294b78a64a26e708e8fff6339'

Thanks @RayJiang16 for your fix. Merged and released just now in v5.2.3!