Why isn't my iOS8 Application Action Extension App Icon showing up?

空扰寡人 提交于 2019-11-28 10:58:50

The following worked for me creating a Share Extension, but I believe Action Extension will do the same. Note that in the case of an Action extension, you need a monochromatic version.

If you are using an asset catalog for your main application icon, you should be able to get the Extension to leverage that same asset catalog. The key for me was to:

  1. Select my extension and tell it to use Asset Catalog. Select the same catalog your main icon is using. The default should be AppIcon

  2. Select the image.xcassets file in XCode Project Navigator

  3. Check my extension so that it is included in the Target Membership

Your asset catalog in your main application isn't accessible from your application extension as they are two separate applications bundles that can only share Frameworks.

You will need to create a separate asset catalog in your action extensions folder and reference that one in your Targets.

EDIT: This worked for me for iphone but not for ipad simulator. Making new images (60x60 and 76x76) with only black and white solved it.

Add the image.xcassets to the extension target

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!