简体   繁体   English

你如何在 App Store Connect 上对你的 iOS 应用程序图标进行 AB 测试?

[英]How Do You AB Test Your iOS App Icon on App Store Connect?

According to the docs you should be able to AB Test app icons now on iOS.根据文档,您现在应该可以在 iOS 上对应用程序图标进行 AB 测试。

However, I can't figure out how to do it.但是,我不知道该怎么做。

Here, it says you need to include an asset catalog that supports uploading alternate icons.在这里,它说您需要包含一个支持上传备用图标的资产目录。 https://help.apple.com/app-store-connect/#/devb53f12312 https://help.apple.com/app-store-connect/#/devb53f12312

I've uploaded an app with alternate icons that the user can change in the app and that same binary includes an asset in the asset catalog for the alternate app icon.我已经上传了一个带有备用图标的应用程序,用户可以在应用程序中更改这些图标,并且相同的二进制文件在资产目录中包含一个用于备用应用程序图标的资产。 However, when I try to run an AB test on App Store Connect the icon field isn't present.但是,当我尝试在 App Store Connect 上运行 AB 测试时,图标字段不存在。 I can only change the screenshots in a new treatment.我只能在新的治疗中更改屏幕截图。

To AB Test app icons you need to set up icons the following way:要 AB 测试应用程序图标,您需要按以下方式设置图标:

  1. Add alternative icons to an Asset Catalog ( .xcassets ) included in your target (use option iOS -> New iOS App Icon).将替代图标添加到目标中包含的资产目录 ( .xcassets )(使用选项 iOS -> 新 iOS 应用程序图标)。 You should supply all usable icon variations, including 1024x1024.您应该提供所有可用的图标变体,包括 1024x1024。
  2. Configure build system to preserve alternative icons.配置构建系统以保留替代图标。 In the target build setting configure ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS to include all icons or ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES to include only some icons在目标构建设置中配置ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS以包括所有图标或ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES以仅包括一些图标
  3. Upload and publish the app build to the AppStore将应用构建上传并发布到 AppStore
  4. Configure AB Test according to the Apple guide按照苹果指南配置AB Test

ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES is useful when you have different icons for different build configurations and don't want to include them all in the app binary. ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES当您对不同的构建配置有不同的图标并且不想将它们全部包含在应用程序二进制文件中时很有用。

Note: you don't need to add CFBundleIcons keys to Info.plist.注意:您不需要将 CFBundleIcons 键添加到 Info.plist。 ASSETCATALOG params and .xcassets are enough. ASSETCATALOG 参数和.xcassets就足够了。

Note 2: there seems to be a bug with Xcode 13.3.1 and iOS 14,15 simulator on M1 macs — alt icons are not working there.注意 2:M1 mac 上的 Xcode 13.3.1 和 iOS 14,15 模拟器似乎存在错误 - alt 图标在那里不起作用。 But everything works in physical devices and with iOS 13 simulator但一切都适用于物理设备和 iOS 13 模拟器

Per Apple每苹果

Choose an icon from the menu that appears.从出现的菜单中选择一个图标。 This menu shows all app icons included in your app's binary.此菜单显示应用程序二进制文件中包含的所有应用程序图标。

so I think you've implemented alternate icons incorrectly check this example to see the correct way to implement this所以我认为您错误地实现了备用图标检查此示例以查看实现此功能的正确方法

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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