试了n多方法后,都不行。提示图片问题,但是这张图片我是有的,尺寸也没有任何问题
第一次不报图片错误,是使用了一下方法:
find Products/ -name Info.plist -print0 | xargs -0n1 plutil -replace BuildMachineOSBuild -string 16A323
提交的时候确实不报错,但是在iTunes Connect看不到二进制文件,后来收到邮件,任然是提示120图片没有
第二次不报图片错误,是在podfile文件的最末加上:
post_install do |installer|
installer.aggregate_targets.each do |target|
copy_pods_resources_path = "Pods/Target Support Files/#{target.name}/#{target.name}-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
end
然后在此文件目录下执行:
pod update --verbose --no-repo-update
再提交就没有此错误了,感动,终于解决了!
网友评论