这是pods 的一个Bug 在 podfile 文件中 的末端 添加如下 脚本:

 

post_install do |installer|
    copy_pods_resources_path = "Pods/Target Support Files/Pods-你的工程名字/Pods-你的工程名字-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}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${BUILD_DIR}/assetcatalog_generated_info.plist"'
    text = File.read(copy_pods_resources_path)
    new_contents = text.gsub(string_to_replace, assets_compile_with_app_icon_arguments)
    File.open(copy_pods_resources_path, "w") {|file| file.puts new_contents }
 end

  

然后 重新 pod install 一下 就可以了

 

App Icons not included in build from Xcode 9 #7003 原文链接

 

相关文章:

  • 2021-08-15
  • 2022-12-23
  • 2021-12-07
  • 2021-11-27
  • 2022-01-25
  • 2021-10-02
猜你喜欢
  • 2021-05-10
  • 2021-07-05
  • 2021-11-15
  • 2022-12-23
  • 2021-07-12
  • 2021-11-27
  • 2022-02-05
相关资源
相似解决方案