The only way to resolve this that I found is to specify the image programmatically and not in Interface Builder:
let bundle = NSBundle(forClass: OnePasswordExtension.self) let image = UIImage(named: "OnePasswordExtensionResources.bundle/onepassword-button", inBundle: bundle, compatibleWithTraitCollection: nil)
Note that you still need to specify the full path to the resource set in the UIImage
initializer, since the bundle
value is not the resource package itself, but the package of the container structure.
source share