Open dtrofimov opened 7 years ago
I managed to remove the category from compile sources phase with the following code in Podfile:
post_install do |installer|
target = installer.pods_project.native_targets.detect do |target|
target.name == "BlocksKit-Core-DynamicDelegate-UIKit"
end
build_phase = target.source_build_phase
build_file = build_phase.files.detect do |file|
file.display_name == "UIImagePickerController+BlocksKit.m"
end
build_phase.remove_build_file(build_file)
end
After that, the build was submitted to ITC successfully.
However, it would be great if BlocksKit is updated to handle this situation out of the box. Probably, by moving the categories requiring special settings to separate subspecs.
I'm trying to submit my build to iTunes Connect. I'm using BlocksKit 2.2.5, including
BlocksKit+UIKit
. This containsUIImagePickerController+BlocksKit
, which I'm not actually using, and that category causes a submission issue:As specified in Technical Q&A QA1937,
NSPhotoLibraryUsageDescription
key is required when using the following libraries:I can think out the following options.
UIImagePickerController+BlocksKit
category.post_install
hook to remove the specific files and the corresponding#import
link (I'm not sure if that's possible).UIImagePickerController+BlocksKit
category to a different podspec.I'm using:
Core
andUIKit
subspecs).