Coder Social home page Coder Social logo

showxu / cartools Goto Github PK

View Code? Open in Web Editor NEW
58.0 58.0 9.0 1.27 MB

ToolKit for Compiled Asset Catalogs (.car file) written in Swift.

License: MIT License

Swift 67.99% Objective-C 32.01%
asset-catalog car car-unarchiver carfile cartool cartools compiled-catalog-record cuicatalog swfit-cartool swift swift-cartools unarchiver

cartools's Introduction

Curious and passionate! ๐Ÿ‘‹

Open Source Projects

Maintainer of swift-library

About me

  • ๐Ÿ”ญ Iโ€™m currently working at Tencent.
  • ๐ŸŽฎ I'm currently working on something cool.
  • ๐Ÿ“ซ How to reach me: [email protected]

showxu's github stats

cartools's People

Contributors

showxdxu avatar showxu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

cartools's Issues

The document "Assets.car" could not be opened.

This is the output I get when I try to open Assets.car within an apps Resources/ directory.

The document "Assets.car" could not be opened. Final Car Pro cannot open files in the "Compiled Xcode Asset Catalog" format.

Screen Shot 2022-08-26 at 9 16 44 AM

Cask installation is broken

brew tap 0xxd0/tap
==> Tapping 0xxd0/tap
Cloning into '/opt/homebrew/Library/Taps/0xxd0/homebrew-tap'...
remote: Enumerating objects: 74, done.
remote: Counting objects: 100% (74/74), done.
remote: Compressing objects: 100% (43/43), done.
remote: Total 74 (delta 27), reused 41 (delta 11), pack-reused 0
Receiving objects: 100% (74/74), 11.50 KiB | 692.00 KiB/s, done.
Resolving deltas: 100% (27/27), done.
Tapped 1 formula (16 files, 22.7KB).


brew install cartool

==> Fetching 0xxd0/tap/cartool
==> Downloading https://github.com/0xxd0/cartools/archive/1.0.0-alpha.tar.gz
==> Downloading from https://codeload.github.com/showxu/cartools/tar.gz/refs/tags/1.0.0-alpha
##=O#- #
==> Installing cartool from 0xxd0/tap
==> xcodebuild
            -resolvePackageDependencies
Last 15 lines from /Users/messina/Library/Logs/Homebrew/cartool/01.xcodebuild:
2024-02-23 18:33:41 +0000

xcodebuild
            -resolvePackageDependencies

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
sh: line 1: -resolvePackageDependencies: command not found

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/0xxd0/homebrew-tap/issues

/opt/homebrew/Library/Homebrew/utils/github/api.rb:356:in `raise_error': Validation Failed: [{"message"=>"The listed users and repositories cannot be searched either because the resources do not exist or you do not have permission to view them.", "resource"=>"Search", "field"=>"q", "code"=>"invalid"}] (GitHub::API::ValidationFailedError)
	from /opt/homebrew/Library/Homebrew/utils/github/api.rb:272:in `open_rest'
	from /opt/homebrew/Library/Homebrew/utils/github.rb:178:in `search'
	from /opt/homebrew/Library/Homebrew/utils/github.rb:182:in `search_results_items'
	from /opt/homebrew/Library/Homebrew/utils/github.rb:36:in `search_issues'
	from /opt/homebrew/Library/Homebrew/utils/github.rb:62:in `issues_for_formula'
	from /opt/homebrew/Library/Homebrew/exceptions.rb:502:in `fetch_issues'
	from /opt/homebrew/Library/Homebrew/exceptions.rb:497:in `issues'
	from /opt/homebrew/Library/Homebrew/exceptions.rb:553:in `dump'
	from /opt/homebrew/Library/Homebrew/brew.rb:143:in `rescue in <main>'
	from /opt/homebrew/Library/Homebrew/brew.rb:131:in `<main>'
/opt/homebrew/Library/Homebrew/formula.rb:2829:in `block in system': Failed executing: xcodebuild (BuildError)
            -resolvePackageDependencies
	from /opt/homebrew/Library/Homebrew/formula.rb:2765:in `open'
	from /opt/homebrew/Library/Homebrew/formula.rb:2765:in `system'
	from /opt/homebrew/Library/Taps/0xxd0/homebrew-tap/Formula/cartool.rb:33:in `install'
	from /opt/homebrew/Library/Homebrew/build.rb:177:in `block (3 levels) in install'
	from /opt/homebrew/Library/Homebrew/extend/kernel.rb:493:in `with_env'
	from /opt/homebrew/Library/Homebrew/build.rb:139:in `block (2 levels) in install'
	from /opt/homebrew/Library/Homebrew/formula.rb:1407:in `block in brew'
	from /opt/homebrew/Library/Homebrew/formula.rb:2997:in `block (2 levels) in stage'
	from /opt/homebrew/Library/Homebrew/extend/kernel.rb:493:in `with_env'
	from /opt/homebrew/Library/Homebrew/formula.rb:2996:in `block in stage'
	from /opt/homebrew/Library/Homebrew/resource.rb:129:in `block (2 levels) in unpack'
	from /opt/homebrew/Library/Homebrew/download_strategy.rb:126:in `chdir'
	from /opt/homebrew/Library/Homebrew/download_strategy.rb:126:in `chdir'
	from /opt/homebrew/Library/Homebrew/download_strategy.rb:113:in `stage'
	from /opt/homebrew/Library/Homebrew/resource.rb:125:in `block in unpack'
	from /opt/homebrew/Library/Homebrew/mktemp.rb:75:in `block in run'
	from /opt/homebrew/Library/Homebrew/mktemp.rb:75:in `chdir'
	from /opt/homebrew/Library/Homebrew/mktemp.rb:75:in `run'
	from /opt/homebrew/Library/Homebrew/resource.rb:226:in `stage_resource'
	from /opt/homebrew/Library/Homebrew/resource.rb:124:in `unpack'
	from /opt/homebrew/Library/Homebrew/resource.rb:98:in `stage'
	from /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/forwardable.rb:238:in `stage'
	from /opt/homebrew/Library/Homebrew/formula.rb:2976:in `stage'
	from /opt/homebrew/Library/Homebrew/formula.rb:1400:in `brew'
	from /opt/homebrew/Library/Homebrew/build.rb:133:in `block in install'
	from /opt/homebrew/Library/Homebrew/extend/kernel.rb:493:in `with_env'
	from /opt/homebrew/Library/Homebrew/build.rb:125:in `install'
	from /opt/homebrew/Library/Homebrew/build.rb:229:in `<main>'

How can I find the Appearance in CUIThemeRendition class.

How can I find the Appearance in CUIThemeRendition class.
I want to place the dark type image file to another folder. So I can drag it to Xcode manualy.

I use this command to export info as a json. In this I can see the Appearance type if have

assetutil --info Assets.car > a.json 
  {
    "Appearance" : "UIAppearanceDark",
    "AssetType" : "Image",
    "BitsPerComponent" : 8,
    "ColorModel" : "RGB",
    "Colorspace" : "srgb",
    "Compression" : "deepmap2",
    "DeploymentTarget" : "2019",
    "Encoding" : "ARGB",
    "Idiom" : "universal",
    "Name" : "BubbleIncomingNoTailOld",
    "NameIdentifier" : 49186,
    "Opaque" : false,
    "PixelHeight" : 105,
    "PixelWidth" : 114,
    "RenditionName" : "[email protected]",
    "Scale" : 3,
    "SHA1Digest" : "9C19C47D535B81D7B0EC07A9367A38A2EE72EDFD",
    "SizeOnDisk" : 342,
    "State" : "Normal",
    "Template Mode" : "automatic",
    "Value" : "Off"
  },

When I drag the image into Xcode, if the file name contains "@2x", Xcode will place this image to 2x place. It's OK.

But If the type appearance type is dark, it can not be identify as dark though filename.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.