Using the Xcode template to create a plug-in, I added an Asset.xcassets, then drag in the picture, but I use
NSImage * img = [NSImage imageNamed: @ "myimg"];
can’t get the image , nil is returned. Is Asset.xcassets what other settings do I need after it added?
The image I can be correctly obtained brought with I created app project in Xcode and the pictures I dragged in Asset.xcassets,this Asset.xcassets is generated automatically when the project is created.