xcasset

ERROR ITMS-9000 “Invalid Image Path” when submitting with xcode 6

前提是你 提交于 2019-12-02 19:56:47
When validating or submitting my app with xcode 6, I get the error: ERROR ITMS-9000: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIcons': 'AppIcon120x120'" I've checked my plist file, and there is no entry for CFBundleIcons. I am using an asset catalog, which I can see is configured correctly under the General target settings (it also builds properly with the icons on a device). I've tried removing and re-adding the catalogues, as well. My best guess is that there is some kind of bug in xcode when using multiple asset catalogs across multiple targets. Any

How can I load an image from Assets.car (compiled version of xcassets) within an NSBundle?

混江龙づ霸主 提交于 2019-12-02 19:39:06
In a nutshell : How can I load images from a compiled Assets.car within an NSBundle ? Full Version: I'm in the process of converting a suite of apps to use CocoaPods . Each app relies on a shared pod called Core . Core includes code files, xib files, and several xcasset files. Here's the relevant line from the Podspec for Core that creates the resource bundle: s.resource_bundles = {'CoreResources' => ['Core/Resources/*']} The Podspec passes pod spec lint , and main project that relies on it correctly builds. However, none of the images from any xcasset files within Core are showing. I am

Does Both Referencing an Asset Catalogue and Including it from a Framework Create Duplication?

我与影子孤独终老i 提交于 2019-12-02 05:44:39
As discussed here & here , the only apparent way to host re-usable images in a Framework's .xcassets file, then use those images in the storyboard / XIB of an app, is to manually create a reference to that catalog file directly within the app's project. This puts the assets within the app's main bundle, and avoids this error when trying to use them via Interface Builder: Could not load the "ImageName" image referenced from a nib in the bundle with identifier "BundleName" My question, though, is: Does this lead to duplication of the assets at build-time? Is iOS smart enough not to double-up

Get list of folder and files within Assets.xcassets

南笙酒味 提交于 2019-12-01 22:40:10
问题 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 of those folders name and also list of files inside that folder. Is it possible? 回答1: No it will not hamper your performance. If you face issue with loading large or many files, see this-Is it possible to load a compressed audio file directly into a

Image resources (xcassets) not displayed correctly on Yosemite in application built on El Capitan using xcode6.4

*爱你&永不变心* 提交于 2019-12-01 03:46:30
When I build my application on El Capitan using Xcode6.4 (Xcode7 is no option right now), all images/icons (except the AppIcon) does not show, or looks garbled. Looking at the output from the asset compiler it looks fine, but there are two outputs I suspect could be related, but I am far from certain: 2015-10-02 12:26:53.569 ibtoold[28899:273288] NSFileCoordinator is doing nothing. 2015-10-02 12:26:54.906 ibtoold[28899:276436] CoreUI(DEBUG): CSIGenerator using 'LZFSE' Compression coreui version (362.000000) Could it be that the LZFSE compression messes up so that Yosemite is unable to

Assets.car is 6 times larger than actual Images.xcassets folder when archived

試著忘記壹切 提交于 2019-11-30 23:28:17
We switched our XCode project over to use the Asset Catalog during a redesign. We needed several large background images, which we included in the asset catalog. The images were originally JPEGs that we renamed to PNGs to save space. The size of the images on disk is 19.1MB, but when we archive the app the Assets.car file that is generated is 6 times larger than that. I have tried using PNGs and compressing them, but the size is still huge. I'm not sure what else I can do. It turns out that any image no matter what the original format is converted into a png during the archiving process. I

UIImage using contentsOfFile

纵然是瞬间 提交于 2019-11-30 13:52:24
问题 I am using self.imageView.image = UIImage(named: "foo.png") to select and load images in an UIIMageView . I have the images in my app under the images.xcassets . The problem is that this particular init caches the image for reuse as per the official Apple documentation: If you have an image file that will only be displayed once and wish to ensure that it does not get added to the system’s cache, you should instead create your image using imageWithContentsOfFile: . This will keep your single

What's wrong with my asset catalog containing launch images?

佐手、 提交于 2019-11-28 13:57:55
I'm not using storyboards here, for reasons that would be a distraction to get into. I'm instead trying to add four launch images to an asset catalog: My app doesn't support iPads or 3.5-inch iPhones, so these should be sufficient. Is that fine or do I need landscape as well? Here are the properties of each of the images: Here's the same information in textual form: filename: LaunchImage.launchimage children: filename: 5.5.png idiom: iphone subtype: 736h scale: 3x orientation: portrait extent: full-screen minimum-system-version: 8.0 image: height: 2208 width: 1242 filename: 4.7.png idiom:

Can I access all images in a .xcassets at once?

て烟熏妆下的殇ゞ 提交于 2019-11-28 13:56:55
I have a big amount of images in a Images.xcassets and I need to load them all in a UITableView. But I don't wat to write each name for the [UIImage imageNamed:@"imageName"] . What i'm looking for is something like: NSArray *images = [MagicClass loadAllImagesIn:@"images.xcassets"]; Do you know if this is even possible? If not maybe i'll create a .bundle... Thanks!! Images.xcassets copies all the images in bundle, and it mixes up with other images, better follow the instructions in image below By adding the folder with the option Create folder reference will actually create a folder in main

use xcassets without imageNamed to prevent memory problems?

て烟熏妆下的殇ゞ 提交于 2019-11-28 06:52:46
according to the apple documentation it is recommended to use xcassets for iOS7 applications and reference those images over imageNamed. But as far as I'm aware, there were always problems with imageNamed and memory. So I made a short test application - referencing images out of the xcassets catalogue with imageNamed and started the profiler ... the result was as expected. Once allocated memory wasn't released again, even after I removed the ImageView from superview and set it to nil. I'm currently working on an iPad application with many large images and this strange imageView behavior leads