美文网首页
XCode9.1 + iOS11.1.2 App 图标不显示

XCode9.1 + iOS11.1.2 App 图标不显示

作者: 孤独感爆棚 | 来源:发表于2017-11-28 11:45 被阅读121次

出现的具体原因不清楚,下面说下解决办法

//添加以下代码到Podfile文件最后,再执行 pod install命令
post_install do |installer|
copy_pods_resources_path = "Pods/Target Support Files/Pods-total/Pods-total-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

相关文章

网友评论

      本文标题:XCode9.1 + iOS11.1.2 App 图标不显示

      本文链接:https://www.haomeiwen.com/subject/oaprhxtx.html