FengNiao alternatives and similar libraries
Based on the "Tools" category.
Alternatively, view FengNiao alternatives based on common mentions on social networks and blogs.
-
Awesome-Design-Tools
The best design tools and plugins for everything 👉 -
R.swift
Strong typed, autocompleted resources like images, fonts and segues in Swift projects -
SwiftGen
The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs! -
Lona
A tool for defining design systems and using them to generate cross-platform UI code, Sketch files, and other artifacts. -
Tweaks
An easy way to fine-tune, and adjust parameters for iOS apps in development. -
Xcodes.app
The easiest way to install and switch between multiple versions of Xcode - with a mouse click. -
FBSimulatorControl
idb is a flexible command line interface for automating iOS simulators and devices -
ProvisionQL
Quick Look plugin for mobile apps and provisioning profiles -
LicensePlist
A license list generator of all your dependencies for iOS applications -
SourceKitten
An adorable little framework and command line tool for interacting with SourceKit. -
GDPerformanceView-Swift
Shows FPS, CPU and memory usage, device model, app and iOS versions above the status bar and report FPS, CPU and memory usage via delegate. -
AppDevKit
AppDevKit is an iOS development library that provides developers with useful features to fulfill their everyday iOS app development needs. -
DBDebugToolkit
Set of easy to use debugging tools for iOS developers & QA engineers. -
Laurine
Laurine - Localization code generator written in Swift. Sweet! -
ThisCouldBeUsButYouPlaying
:black_joker: Generate Swift Playgrounds for any library. -
iSimulator
iSimulator is a GUI utility to control the Simulator, and manage the app installed on the simulator. -
Blade
Better asset workflow for iOS developers. Generate Xcode image catalogs for iOS / OSX app icons, universal images, and more. -
ViewMonitor
ViewMonitor can measure view positions with accuracy. -
Realm Browser
DEPRECATED - Realm Browser for Mac OS X has been replaced by realm-studio which is cross platform. -
Cookiecutter
A template for new Swift iOS / macOS / tvOS / watchOS Framework project ready with travis-ci, cocoapods, Carthage, SwiftPM and a Readme file -
SuperDelegate
SuperDelegate provides a clean application delegate interface and protects you from bugs in the application lifecycle -
WatchdogInspector
Shows your current framerate (fps) in the status bar of your iOS app -
Swift Package Index
The Swift Package Index is the place to find Swift packages! -
abandoned-strings
Command line program that detects unused resource strings in an iOS or OS X application. -
fastlane-plugin-appicon
Generate required icon sizes and iconset from a master application icon. -
AVXCAssets-Generator
AVXCAssets Generator takes path for your assets images and creates appiconset and imageset for you in just one click -
Shark
Swift CLI for strong-typing images, colors, storyboards, fonts and localizations
Appwrite - The open-source backend cloud platform
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of FengNiao or a related project?
README
What
FengNiao is a simple command-line util to deleting 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:
> brew install mint
> mint install onevcat/fengniao
Compile from source
> git clone https://github.com/onevcat/FengNiao.git
> cd FengNiao
> swift build -c release
# Then copy the executable to your PATH, such as `/usr/local/bin`
> sudo cp .build/release/FengNiao /usr/local/bin/fengniao
FengNiao should be compiled, tested and installed into the /usr/local/bin
.
Usage
Just navigate to your project folder, then:
> fengniao
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:
> fengniao --help
-p, --project:
Root path of your Xcode project. Default is current folder.
--force:
Delete the found unused files without asking.
-e, --exclude:
Exclude paths from search.
-r, --resource-extensions:
Resource file extensions need to be searched. Default is 'imageset jpg png gif pdf'
-f, --file-extensions:
In which types of files we should search for resource usage. Default is 'm mm swift xib storyboard'
--version:
Print version.
-h, --help:
Print this help message.
A more daily-work usage under a project could be:
> fengniao --project . --exclude Carthage Pods
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:
fengniao --exclude Carthage --force
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.
How it works
- Extract resource file names (default file type:
["imageset", "jpg", "png", "gif", "pdf"]
) in these folders["imageset", "launchimage", "appiconset", "bundle”]
. - Use regular expression to search all string names in files (default files type:
["m", "mm", "swift", "xib", "storyboard", "plist"]
). - Exclude all used string names from resources files, we get all unused resources files.
License and Information
FengNiao is open-sourced as MIT license. The name of this project comes from the Chinese word 蜂鸟 (hummingbird), which is the smallest bird in the world.
Submit an issue if you find something wrong. Pull requests are warmly welcome, but I suggest to discuss first.
You can also follow and contact me on Twitter or Sina Weibo.
Learning to Create
I streamed the way I created this tool as a live-coding session in a live platform in China. You can learn how to create a project with Swift Package Manager, how to apply Protocol-Oriented Programming (POP) in the project, and how to develop in a BDD way as well as write good tests there.
It is a paid series lesson in Chinese. If you are interested in it, please check and watch the links below:
现场编程 - 用 Swift 创建命令行工具 fengniao-cli
*Note that all licence references and agreements mentioned in the FengNiao README section above
are relevant to that project's source code only.