{"repo":"onevcat/FengNiao","free":true,"listed":false,"github":"https://github.com/onevcat/FengNiao","clone":"git clone https://github.com/onevcat/FengNiao.git","description":"A command line tool for cleaning unused resources in Xcode.","language":"Swift","stars":3577,"topics":["command-line-tool","resources","slim","xcode","images","cleanup","swift"],"license":"MIT","category":"cli-tools","readme_excerpt":"What FengNiao is a simple command-line util to delete unused image resource files from your Xcode project. How Install Mint Mint is a tool that installs and runs Swift command line tool packages. Make sure you have Xcode installed, then: Compile from source FengNiao should be compiled, tested and installed into the /usr/local/bin . Usage Just navigate to your project folder, then: It will scan current folder and all its subfolders to find unused images, then ask you whether you want to delete them. Please make sure you have a backup or a version control system before you deleting the images; it will be an un-restorable operation. FengNiao supports some arguments. You can find it by: A more daily-work usage under a project could be: This will search in current folder, but skip the Carthage and Pods folder, in which there might be some third party resources you do not want to touch. Use with Xcode build phase It is easy to integrate FengNiao into your Xcode build process. By doing so, you could ensure your project being cleaned every time you build your project. Add a \"Run Script\" phase in the Build Phases tab: Then drag it above of \"Copy Bundle Resources\", editing its content to something like this: It is recommended to exclude vendor's folders like Pods or Carthage. Since you do not have a chance to confirm the result, you also need to add --force option. App Version An GUI app version of FengNiao is also available. You can find it under the App folder. We do not provide a pr","default_branch":null,"files":null,"tree":[],"storefront":"/r/onevcat","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/onevcat/FengNiao/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}