Asset Catalog

RSS for tag

An asset catalog is a type of file used to organize and manage different assets and image resolutions used by your app’s user interface.

Asset Catalog Documentation

Posts under Asset Catalog tag

25 Posts
Sort by:
Post marked as solved
4 Replies
931 Views
When I have a Image in my Assets.xcassets, than comes an Error.Wenn I delete the Image than there is no error.     cd /Users/tomludwig/Library/Mobile\ Documents/com\~apple\~CloudDocs/Documents/Xcode\ /LexiconForSwiftUI\ \(original\)     /Applications/Xcode-beta.app/Contents/Developer/usr/bin/actool --output-format human-readable-text --notices --warnings --export-dependency-info /Users/tomludwig/Library/Developer/Xcode/DerivedData/LexiconForSwiftUI-cyqupfiuzpwcliblfainqnnopfcu/Build/Intermediates.noindex/LexiconForSwiftUI.build/Debug-iphonesimulator/LexiconForSwiftUI.build/assetcatalog_dependencies --output-partial-info-plist /Users/tomludwig/Library/Developer/Xcode/DerivedData/LexiconForSwiftUI-cyqupfiuzpwcliblfainqnnopfcu/Build/Intermediates.noindex/LexiconForSwiftUI.build/Debug-iphonesimulator/LexiconForSwiftUI.build/assetcatalog_generated_info.plist --app-icon AppIcon --accent-color AccentColor --compress-pngs --enable-on-demand-resources YES --filter-for-device-model iPhone12,5 --filter-for-device-os-version 14.0 --development-region en --target-device iphone --target-device ipad --minimum-deployment-target 14.0 --platform iphonesimulator --compile /Users/tomludwig/Library/Developer/Xcode/DerivedData/LexiconForSwiftUI-cyqupfiuzpwcliblfainqnnopfcu/Build/Products/Debug-iphonesimulator/LexiconForSwiftUI.app /Users/tomludwig/Library/Mobile\ Documents/com\~apple\~CloudDocs/Documents/Xcode\ /LexiconForSwiftUI\ \(original\)/LexiconForSwiftUI/Preview\ Content/Preview\ Assets.xcassets /Users/tomludwig/Library/Mobile\ Documents/com\~apple\~CloudDocs/Documents/Xcode\ /LexiconForSwiftUI\ \(original\)/LexiconForSwiftUI/Assets.xcassets 2020-08-18 09:19:36.048 ibtoold[1098:25421] DEBUG: Added to environment: {     TMPDIR = "/var/folders/62/ht97fll57c39kqkdd51626br0000gn/T/34C9DCDF-97BF-4717-A216-537C31B68474"; } int _CreateMapAddress(BOMStorage, unsigned int) can't mmap memory of size '4096' error: 'Invalid argument' CoreUI: Error: unable to create storage file /Users/tomludwig/Library/Developer/Xcode/DerivedData/LexiconForSwiftUI-cyqupfiuzpwcliblfainqnnopfcu/Build/Products/Debug-iphonesimulator/LexiconForSwiftUI.app/Assets.car error 'Invalid argument' /* com.apple.actool.errors */ : error: ERROR: Each TDDistiller instance can be distilled only one time! /* com.apple.actool.document.notices */ /Users/tomludwig/Library/Mobile Documents/com~apple~CloudDocs/Documents/Xcode /LexiconForSwiftUI (original)/LexiconForSwiftUI/Assets.xcassets:./AppIcon.appiconset/[][ipad][76x76][][][1x][][]: notice: 76x76@1x app icons only apply to iPad apps targeting releases of iOS prior to 10.0. /* com.apple.actool.compilation-results */ /Users/tomludwig/Library/Developer/Xcode/DerivedData/LexiconForSwiftUI-cyqupfiuzpwcliblfainqnnopfcu/Build/Intermediates.noindex/LexiconForSwiftUI.build/Debug-iphonesimulator/LexiconForSwiftUI.build/assetcatalog_generated_info.plist /Users/tomludwig/Library/Developer/Xcode/DerivedData/LexiconForSwiftUI-cyqupfiuzpwcliblfainqnnopfcu/Build/Products/Debug-iphonesimulator/LexiconForSwiftUI.app/AppIcon60x60@2x.png /Users/tomludwig/Library/Developer/Xcode/DerivedData/LexiconForSwiftUI-cyqupfiuzpwcliblfainqnnopfcu/Build/Products/Debug-iphonesimulator/LexiconForSwiftUI.app/AppIcon76x76@2x~ipad.png /Users/tomludwig/Library/Developer/Xcode/DerivedData/LexiconForSwiftUI-cyqupfiuzpwcliblfainqnnopfcu/Build/Products/Debug-iphonesimulator/LexiconForSwiftUI.app/Assets.car Command CompileAssetCatalog failed with a nonzero exit code
Posted Last updated
.
Post not yet marked as solved
0 Replies
476 Views
I added my image to .xcassets file, and edited content json like launch images. But the method UIImage imageNamed returned nil in iOS 15 This is working as well < iOS 15
Posted
by lebuiduc.
Last updated
.
Post not yet marked as solved
0 Replies
473 Views
The problem is, I have a video file which is about 111MB with resolution 1216x2160 aaaand I can’t save it on my iPhone even though I have a plenty enough space 😭 I tried to send it via airdrop and it shows a pop up with an error and ask me if I want to save it in my documents (I tried this one as well and there’s no way to save it in my gallery from the app), I tried to send a file via telegram and also get the same error. What should I do? I can’t believe that I can shoot in 4K, but can’t save a video with a higher resolution on my iPhone
Posted
by MaryMay.
Last updated
.
Post not yet marked as solved
0 Replies
297 Views
I changed my app icon and accent colour in asset file of my iOS app project, but it cannot be live on my physical (real) iPhone. I even tried to uninstall it an re-install by TestFlight but the assets not applied. It available on Simulator even other TestFlight tester’s real device. This is the app icon on my real device:
Posted
by Astrian.
Last updated
.
Post marked as solved
2 Replies
565 Views
I have an error I don't seem to be able to resolve. I don't get this while testing on my phones, but it happens after uploading the App for review. The phone used in the received crash report is (iPhone XR). The crash report points to: UIImage.init+ 92364 (imageLiteralResourceName:) + 144 This happens during app startup, and the code that using the UIImage function when it crash is: let image = UIImage(imageLiteralResourceName: getCurrrentDayNumber()) ... where the getCurrentDayNumber is my function, it returns the day number 1-31 depending on the day of the month as a string ("1" .."31"). This function using the Date() function, so it could be that the Date() function does not give a valid date during startup, and hence the imageLiteralResourceName gets wrong, but I thought that was unlikely. Again, I don't get this error in any of the devices I have tested, nor in the Test build loaded to TestFlight, only during app review by Apple. For the resources to load, I have created 31 image resources in Asset.xcassets. Each assets has three images, 1x,2x,3x for all 31 days in a month, where the 1x is typical 300x180 px. Anyone that can point me to where I might find the issue?
Posted
by NorseJarl.
Last updated
.