Questions tagged [xcasset]

An image asset catalog is an asset management file type and editor in Xcode 5.

Xcode 5 asset catalogs manage images and icons in multiple resolutions. An asset catalog is a new asset management file type and editor in Xcode 5.

You use asset catalogs to store and manage images for different platforms, devices, and scale factors. The catalog presents the image variants required, and provides you with the ability to define slice and stretch points for images that are resized at runtime.

For more information on Xcode Asset Catalogs, refer here.

235 questions
5
votes
1 answer

Assets.xcassets in Watch Extension in WatchOS 2

What is the purpose of Assets.xcassets in Watch Extension in WatchOS 2? What images should be included in these assets?
qwerty
  • 221
  • 2
  • 11
5
votes
3 answers

Xcode 7 beta 4 build error - com.apple.CoreSimulator.SimRuntime.iOS-9-0

The error I get when building a previously working project: Images.xcassets: Failed to find a suitable device for the type SimDeviceType : com.apple.CoreSimulator.SimDeviceType.iPad-2 with runtime SimRuntime : 9.0 (13A4305g) -…
Mezzo
  • 85
  • 1
  • 5
5
votes
1 answer

Using Vectors on image xcasset Xcode and Render as Template

someone can give an example to use Vector image (.pdf) on Xcode with option Render: "as template" in the image.xcasset? Can I programatically set color of the vector image? if yes how? Thanks, Omar.
Omar Cafini
  • 51
  • 1
  • 4
5
votes
1 answer

Do I really have to explicitly support iPhone 6 and iPhone 6 Plus screens?

I couldn't get used to introduced in Xcode 6 new layout system called Size Classes, so I decided to go by the old way creating two separate xibs for iPhones and iPads with ~iphone and ~ipad suffixes correspondingly. Xibs designed for iPhones (with…
nalexn
  • 10,615
  • 6
  • 44
  • 48
5
votes
1 answer

Images in Images.xcassets Not Showing up When Archiving App?

I am using Xcode 5.1.1 and images.xcassets to store a significant amount of my app's images (I realize now that by doing this, building and running my app now takes significantly longer). Anywho, everything works as expected. When I hook up by…
KingPolygon
  • 4,753
  • 7
  • 43
  • 72
5
votes
2 answers

Why can't I add files to Images.xcassets in Xcode 5?

When trying to add image files to Images.xcassets, there are certain images that I cannot add. I've tried both dragging-and-dropping as well as using "+" followed by "Import". In the drag-and-drop case, nothing happens. In the Import case, the…
user3230300
  • 53
  • 1
  • 1
  • 3
4
votes
1 answer

SpriteKit Could not get trait set for device iPad14,5 with version 16.2

I have seen similar questions before but they had no answers. Could somebody help with this problem?
Roman
  • 759
  • 2
  • 9
  • 23
4
votes
1 answer

How Many Images Can/Should you Store in xcassets in Xcode?

I'm trying to store a lot of images for a project in xcassets. Around 2,000. However, they are all very small/highly optimized at only around 3-5kB each, so the overall total will be maybe 6-10MB. Is this going to cause a memory problem? Is this not…
Adam S.
  • 173
  • 3
  • 15
4
votes
1 answer

How do I use MetalKit texture loader with Metal heaps?

I have a set of Metal textures that are stored in an Xcode Assets Catalog as Texture Sets. I'm loading these using MTKTextureLoader.newTexture(name:scaleFactor:bundle:options). I then use a MTLArgumentEncoder to encode all of the textures into a…
OliverD
  • 1,074
  • 13
  • 19
4
votes
1 answer

xcassets what are the pixel sizes for Universal x1, x2, x3?

I used to import assets from the Sympli plug in which did this stuff for me. I have a new version of an asset that I need to replace and this time I don't have Sympli to help me out. So what resolutions of the picture do I need in Universal x1, x2,…
Tommy K
  • 1,759
  • 3
  • 28
  • 51
4
votes
1 answer

Get list of folder and files within Assets.xcassets

I have 2 questions: I'm adding large amount of mp3 files into Assets.xcassets, is there any performance issue with this? Within Assets.xcassets, I create folders & sub folders, and put mp3 files in those folders. Now in my code, I want to get list…
kenvu
  • 343
  • 6
  • 18
4
votes
3 answers

Loading a UIImage from xcassets

I'm trying to load a launch image from the Image.xcassets folder but to no avail. There are other answers (and this one) on SO that purport to answer it but their main solution, to simply load an image like so UIImage *image = [UIImage…
Guy Lowe
  • 2,115
  • 1
  • 27
  • 37
4
votes
1 answer

Impossible to load an image from xcassets on iOS 9

I got several images stored in my Images.xcassets that I load both through code and Interface Buider. However the iOS 9 update broke everything : the images are not showing neither when loaded from code or IB. Everything was working fine except that…
Tuetuopay
  • 155
  • 9
4
votes
3 answers

New tab bar icons in PDF format... Guidelines to create custom?

I have noticed that in recent versions of Xcode, the project template for "Tabbed Application" creates a project where the tab bar icon images (dubbed "first" and "second", for the default two tabs/view controllers available) are actually stored in…
Nicolas Miari
  • 16,006
  • 8
  • 81
  • 189
4
votes
1 answer

After Adding WatchKit Target it's Files Turns Red

I started a new project in xCode 6.3 then I Selected File > New > Target > AppleWatch and after the confirmation dialogue I got this: Why is this happening? UPDATE: When I clicked on the project it gave me this message:
Chaudhry Talha
  • 7,231
  • 11
  • 67
  • 116