下載和介紹:
下載安裝
使用例子
SwiftShield會不可逆地覆蓋你所有的源文件叔营。因此,建議備份好再操作所宰,避免意外情況绒尊。
使用命令:
USAGE: swiftshield obfuscate --project-file <project-file> --scheme <scheme> [--ignore-public] [--ignore-targets] [--verbose] [--dry-run] [--print-sourcekit]
OPTIONS:
-p, --project-file <project-file>
The path to your app's main .xcodeproj/.xcworkspace
file.
-s, --scheme <scheme> The main scheme from the project to build.
--ignore-public Don't obfuscate content that is 'public' or 'open'
(a.k.a 'SDK Mode').
-i, --ignore-targets A list of targets, separated by a comma, that should
NOT be obfuscated.
-v, --verbose Prints additional information.
-d, --dry-run Does not actually overwrite the files.
--print-sourcekit Prints SourceKit queries. Note that they are huge, so
use this only for bug reports and development!
-h, --help Show help information.
操作步驟:
按上面
下載安裝
下載好 swiftshield
- 解壓后,找到 bin 目錄下的 swiftshield
- 雙擊swiftshield文件(如果有安全問題提示仔粥,需要到系統(tǒng)偏好設置允許)
使用 swiftshield 命令方式
1婴谱、省事方式
- 打開終端,直接將 bin目錄下的swiftshield拖到終端
- 按自己需求躯泰,拼接 swiftshield 命令選項
列子:~/Downloads/swiftshield/bin/swiftshield obfuscate -p Demo.xcodeproj -s Demo -v
- 回車運行執(zhí)行命令
2谭羔、經(jīng)常使用則將swiftshield配置成啟動命令