Thank you! Yes, it's a bug in CocoaPods! With your suggestion, I was also able to fix the problem in my project.
In case anyone else encounters the same issue, here's what fixed it for me in the Podfile. This fix modifies the resources file for the target to include the proper parameter. Be sure to replace instances of YOUR_TARGET with the actual target name, and double-check the resulting resources file in the filesystem to ensure it was correctly modified after running a pod install.
post_install do |installer|
# This bug has been reported to the cocoapods project developers here:
# https://github.com/CocoaPods/CocoaPods/issues/12539
target_pods_resources_path = "Pods/Target Support Files/Pods-YOUR_TARGET/Pods-YOUR_TARGET-resources.sh"
string_to_replace = '--compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"'
assets_compile_with_app_icon_arguments = '--compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --include-all-app-icons'
text = File.read(target_pods_resources_path)
new_contents = text.gsub(string_to_replace, assets_compile_with_app_icon_arguments)
File.open(target_pods_resources_path, "w") {|file| file.puts new_contents }
end
end
Topic:
App Store Distribution & Marketing
SubTopic:
General
Tags: