My app icon is just a grey super ellipse even though I have specified a icon asset catalog in my Targets App Icons and Launch Images.
相关问题
- Loading local file in WKWebView doesn't workin
- Xcode 6 Storyboard crashing when scrolling to part
- Images.xcassets breaking the laws of targets
- Animation delay on left side of screen in iOS keyb
- SpriteKit & Swift: Creating nodes via didBeginCont
相关文章
- Where does a host app handle NSExtensionContext#co
- Navigation bar disappears when typing in UISearchC
- iOS 8 Today widget alignment issue
- Using the device simulator for iOS 8 with Xcode 7
- Using UILexicon to implement autocorrect in iOS 8
- Can't see custom keyboard in Safari of iOS8.1
- Can't use Swift classes inside Objective-C uni
- Change color of accessoryType Swift
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:
Select my extension and tell it to use Asset Catalog. Select the same catalog your main icon is using. The default should be AppIcon
Select the image.xcassets file in XCode Project Navigator
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