試了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
然后在此文件目錄下執(zhí)行:
pod update --verbose --no-repo-update
再提交就沒有此錯誤了趁舀,感動,終于解決了祝沸!