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
2
votes
0 answers

Xcode 6 - Images Xcassets - Images size and devices Resolutions

I am trying to understand what's going on with the new resolutions on all iPhones Devices (including 6,6+). I read this one http://www.paintcodeapp.com/news/ultimate-guide-to-iphone-resolutions but I still don't understand what's going on. For…
BlackM
  • 3,927
  • 8
  • 39
  • 69
2
votes
0 answers

You do not have permission to move the file “xxx.png” to the trash

The question is when I move the image in xcassets from 1x to 2x,Xcode pops a tip "You do not have permission to move the file “xxx.png” to the trash.". Then I tried to chmod the folder xcassets to 777,but it doesn't work. My Xcode version is…
2
votes
3 answers

images.xcassets size is too large

I am using xcode 6.0.1 and after setting all App Icons and Default Images my app size is jumped by 13 MB. My App support iOS 5.1.1 and Later. Using Vector image don't support iOS 5.1.1 and iOS 6.x, I am not sure what i can do to reduce the build…
Haroon
  • 697
  • 1
  • 9
  • 24
2
votes
2 answers

Images.xcassets stopped working after Xcode project Clean Build Folder - iOS

I have a problem with Images.xcassets, where I'm using *.jpg images. Earlier it was working well, but after doing "Clean Build Folder" it stopped working on device, but still working on simulator. Now images not showing in app. Does anyone know…
saltwat5r
  • 1,107
  • 13
  • 21
2
votes
1 answer

When using Asset Catalogs, is it possible to load images from a specific folder?

I'm attempting to use an image Asset Catalog in Xcode 5 for the first time and running into some issues. Previously I'd just have the image folder (with subfolders) referenced/linked into the project, and pass a full pathname to +[UIImage…
Endareth
  • 492
  • 3
  • 15
2
votes
0 answers

How can I get the Xcode storyboard and the iPhone Retina (3.5-Inch) simulation to use the correct xcassets images?

Weird problem here which may be a bug in Xcode... Using an Xcode 5.1.1 storyboard with auto layout, I am working on the design of a view controller that contains a full iPhone 4 sized UIImageView that references an xcassets image set. The xcassets…
Rosswerks
  • 165
  • 1
  • 3
  • 14
2
votes
0 answers

How to use xcAssets slicing in xCode 5?

I am wondering how to use slicing in xCassets to minimize the number of resources for UINavigationBar. I set up a normal one (320x64) and a retina one (640x128) with a logo in the very center and a solid background color. With appropriate…
Romain Dorange
  • 831
  • 1
  • 10
  • 23
2
votes
1 answer

Images.xcassets and IOS 5

My app is almost complete and i'm bug testing and fixing. Now this is the first time i have used images xcassets and until now it worked. When i'm testing on the simulator all icons look great, when testing on my test devices iPhone 5, iPad mini,…
Msmit1993
  • 1,710
  • 4
  • 21
  • 35
2
votes
1 answer

can asset catalogs eliminate the need for iOS device resource extensions in sprite sheets?

I have been using texture packer for most of my image resources. Recently I read about asset catalogs that eliminate the need to specify iOS device extensions needed for resources. can asset catalogs eliminate the need for iOS device resource…
NSologistic
  • 745
  • 4
  • 14
1
vote
1 answer

iOS build time error Asset.xcasset No such file or directory

I'm getting an error while trying to run the app on the simulator, using Xcode…
AliRehman7141
  • 873
  • 3
  • 12
  • 33
1
vote
1 answer

CodenameOne - Using 1x 2x 3x images of XCode Assets.Casset catalog in CN1 project

My CodenameOne app needs customized icons for some buttons. Images have to be used. The iOS version of my app was duly provided of those images in 1x 2x 3x formats. It seems that the multi-image system of CN1 would beneficiate of the image resources…
P5music
  • 3,197
  • 2
  • 32
  • 81
1
vote
1 answer

Why Xcode compile assets every time even I don't make any changes

As title said, I'm using Xcode 12.1, Mbp 15' 2017. My project is a large one that have over 300 images or icons and it will take aboud 45s to compile the assets. I just rebuild it after a success building and it will recompile assets. What should I…
Klein Mioke
  • 1,261
  • 2
  • 14
  • 23
1
vote
0 answers

Localization of assets no longer working since updating xcode

I recently updated my project to be compatible with the newest xcode (11.6 - beta), previously I was using xcode 11.2. My app is available in 2 languages, English and Spanish. Since updating xcode all localized images for the Spanish language no…
davedave1919
  • 103
  • 1
  • 11
1
vote
0 answers

Color not loaded from assets with SwiftUI

I have this simple view : struct SplashscreenView: View { var body: some View { ZStack { Color("primary").edgesIgnoringSafeArea(.all) Text("Hello, World!") } } } The color primary is defined in…
Kevin ABRIOUX
  • 16,507
  • 12
  • 93
  • 99
1
vote
0 answers

How to load specific folder from XCAsset?

In my app I have a color.xcasset with following structure: color.xcasset ->Red ->primarycolor ->secondarycolor ->backgroundcolor ->headercolor ->Blue ->primarycolor ->secondarycolor ->backgroundcolor ->headercolor …