简体   繁体   中英

How to modify iOS App Icon with fastlane action?

在此处输入图片说明

I use the Fastlane action to upload the app to TestFlight, and I want to modify the app icon. In Xcode, this "Asset Catalog App Icon Set Name" option in the Build Settings of Targets can modify the app icon, but I can't find the action of Fastlane to modify the app icon, and I used the two actions of badge and app_icon below but it didn't work.

the Fastlane file as below:

lane :beta do |values|
badge(custom: './Assets.xcassets/AppIconBeta.appiconset/IconBeta-1024.png')
#badge(path: './Assets.xcassets/AppIconBeta.appiconset/IconBeta-1024.png')
#app_icon('./Assets.xcassets/AppIconBeta.appiconset/IconBeta-1024.png')

match(type: 'appstore',readonly: false,app_identifier:'com.health-beta',force_for_new_devices: false,force: true)
gym(scheme: 'Health - PROD', export_method: 'app-store')
pilot
end

在Fastlane脚本中,您可以使用badge https://docs.fastlane.tools/actions/badge/向其图标明确添加徽章和一些其他更改

badge(custom: <badge path>)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM