Shell Script tool of Xcode.
Make App Dev-Info more clearer and straight. Info:
- Git-Info (e.g. ver-hash,branch)
- Xcode Project-Info (e.g. short-version,build-number)
Add text of above info to the App-Icon image as a watermark.
- Add infomation(git,project..) to App-Icon image.
- Make a new 'AppIcon-Dev.appiconset' directory. You can select.
test passed
- MacOSX 10.x+
- Xcode 9+
- ImageMagick
If you do not have brew
installed, follow these steps to install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install imagemagick
Copy install
script file to your project folder as same as .xcodeproj
directory, and run script:
./install
If nothing goes wrong, you are ready to go. try command + B build project in Xcode.
NOTE:Markup app icon only when CONFIGURATION=Debug
install [PATH_TO_PROJECT_DIR] ['clean'/'noclean']
- To unconfigure your project.
./install . noclean
./appicon_mark.rb uninstall --project <PATH_TO_YOUR_PROJECT>/<PROJECT_NAME>.xcodeproj
- To remove all cache files.
./install . clean
You can ignore the following steps, if already do step INSTALL (Automatic)
above.
Add tool to your project
1.1:
Add 2 files to the project(with copy).
- icon_mark
- lib/dev_kit.sh
BE-SURE: icon_mark
, lib
directory, in the same level.
1.2:
Xcode Project
-> Target
-> Build Phases
-> Add 'Run Script'
-> Edit to run script file
Edit Run Script
content:
"<Path-To-Script>/icon_mark"
In this demo project use : "${PROJECT_DIR}/${PROJECT_NAME}/Script/icon_mark
1.3:
If Build Phases
-> Copy Bundle Resources
has the script files(icon_mark
,lib/dev_kit.sh
), and remove them.
- First
Build
your project; if success,AppIcon-Dev
was generated in the.xcassets
folder. - Set project -> target -> General -> App Icons and Launch Images -> App Icons Source to
AppIcon-Dev
Run
again. the AppIcon will be setup.
!Important
- Make sure your project has the
.appiconset
folder which has asize:1024x1024
of App icon image in it. - The marked app icon only created in
Debug
CONFIGURATION. - Only support One
.xcassets
Directory (Random selected) of the project.
MIT