🤖
A set of scripts that helping you more easier to work with your swift project
- automatic add build number for project
- format swift source code in folder
- generated image resource code
- generated localization file code, support change language without relaunching
curl -fsSL https://raw.githubusercontent.com/CodeEagle/XcodeScriptsKit/master/install.sh | sh
if you'r using image generator in framework project, change bundle to framework own bundle, see detail for more, or in your generated code
-
new run script in Xcode Build Phase before compile source
-
configure and paste code to it
cd ~/bin/XcodeScriptsKit && ./script_manager.sh "1" "INFO_PLIST_PATH" "BUILD_NUMBER_PLIST_PATH" "GENERATED_CODE_PREFIX" "GENERATED_CODE_PATH" "IMAGE_ASSETS_PATH" "TO_FORMAT_CODE_PATH" "LANGUAGE_FILE_PATH"
-
build your project
There has 8 parameters need to pass to the script
- ENABLE_BUILD_NUMBER #"1" to enable, "0" to disable, if disable, 2 & 3 will be ignore
- INFO_PLIST_PATH # "/path/to/info.plist"
- BUILD_NUMBER_PLIST_PATH # "/path/to/save/build.plist"
- GENERATED_CODE_PREFIX # prefix for generated code, such as "Re"
- GENERATED_CODE_PATH # "/path/to/save/generatedCode"
- IMAGE_ASSETS_PATH # "/path/to/*.xcassets"
- TO_FORMAT_CODE_PATH # folder that needs code format
- LANGUAGE_FILE_PATH # language file path,such as ".../zh-Hans.lproj/Localizable.strings"