Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新增 Apple 隐私清单文件,pod install 最新的 source_files 缺少 PrivacyInfo.xcprivacy 文件 #1676

Open
caosuyang opened this issue Apr 28, 2024 · 2 comments

Comments

@caosuyang
Copy link

提bug前必看
请先回答下列三个问题,否则不允处理,谢谢配合。
1、我最新的Demo是否有这个bug?【如果Demo没问题,请升级新版
答:有

2、你用的是什么版本?升级到最新版后是否正常?
答:3.8.5,master

3、是否有改动过我库内部的代码?【如有,请说明改动点
答:没有

bug内容描述

pod install 最新的 source_files 缺少 PrivacyInfo.xcprivacy 文件

我如何复现这个bug?

截图

解决办法

需要更改 TZImagePickerController.podspec,加入 .xcprivacy 文件的处理

@caosuyang
Copy link
Author

caosuyang commented Apr 28, 2024

更改后就像这样:

Pod::Spec.new do |s|
  s.name         = "TZImagePickerController"
  s.version      = "3.8.5"
  s.summary      = "A clone of UIImagePickerController, support picking multiple photos、original photo and video"
  s.homepage     = "https://github.com/banchichen/TZImagePickerController"
  s.license      = "MIT"
  s.author       = { "banchichen" => "[email protected]" }
  s.platform     = :ios
  s.ios.deployment_target = "12.0"
  s.source       = { :git => "https://github.com/banchichen/TZImagePickerController.git", :tag => "3.8.5" }
  s.requires_arc = true
  
  s.subspec 'Basic' do |b|
    b.resources    = "TZImagePickerController/TZImagePickerController/*.{png,bundle}"
    b.source_files = "TZImagePickerController/TZImagePickerController/*.{h,m}"
  end
  
  s.subspec 'Location' do |l|
    l.source_files = 'TZImagePickerController/Location/*.{h,m}'
  end
  
  s.subspec 'Privacy' do |b|
    # b.source_files = "TZImagePickerController/TZImagePickerController/*.{xcprivacy}"
    b.source_files = "TZImagePickerControllerFramework/*.{xcprivacy}"
  end
  
  s.frameworks   = "Photos", "PhotosUI"
end

@Jijingcheng
Copy link

我更新了也是。是哪里需要设置吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants