Xcode 配置多套 App 图标的方法 --- AppStore 图标 A/B Test 实践

作者:iHTCboy

最近苹果推出 App Store 产品页的新功能,其中在 app 产品页的不同版本上使用不同的图标,通过 A/B Test 找出效果最佳的版本。但是苹果文档并没有给出详细的教程,怎么在 Xcode 中集成多套图标呢?这就是本文要讲解的内容,适合 iOS 技术开发同学阅读。

一、背景

2021 年 12 月 08 日,苹果 推出 App Store 产品页的新功能,在 App Store 中开发者可以针对 app 产品页的不同版本上使用不同的图标、截屏和 app 预览,通过 A/B Test 找出效果最佳的版本。有部分读取可能知道我们在之前的文章 解读 AppStore 新功能:自定义产品页面和 A/B Test 工具,当时留下这个一个问题:测试不同的 app 图标,提交新图标的 app 审核流程是怎么样?

Get ready to optimize your App Store product page - WWDC21 视频中有这样一段话:

And remember, to test a variation of your app icon, you’ll need to include the icon assets in the binary of your app version that is currently live, so make sure to prepare your app releases accordingly.
请记住,要测试 app 图标的变体,您需要将图标集包含在当前上线的 app 版本的二进制文件中,因此请确保相应地准备应用版本。

1.1 Xcode 集成多套测试 App 图标

怎么包含不同的图标集到 app 中呢?首先,想到的是 Xcode 13 beta 版本,然后在苹果的文档 Xcode 13 Beta 3 Release Notes | Apple Developer Documentation 中找到这样一段话:

Asset Catalogs

New Features

At runtime, your app can now use iOS app icon assets from its asset catalog as alternate app icons. A new build setting, “Include all app icon assets,” controls whether Xcode includes all app icon sets in the built product. When the setting is disabled, Xcode includes the primary app icon, along with the icons specified in the new setting, “Alternate app icon sets.” The asset catalog compiler inserts the appropriate content into the Info.plist of the built product. (33600923)
在运行时,您的 app 现在可以

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值