4 "summary": "A short description of KKHook.",
5 "pod_target_xcconfig": {
6 "VALID_ARCHS": "arm64 armv7",
7 "VALID_ARCHS[sdk=iphonesimulator*]": ""
9 "description": "TODO: Add long description of the pod here.",
10 "homepage": "https://gitee.com/rykeryin/KKHook",
16 "rykeryin": "rykeryin@163.com"
19 "git": "https://gitee.com/rykeryin/KKHook.git",
26 "KKHook/Classes/**/*",
27 "KKHook/Frameworks/Dobby.framework/Headers/**.h"
29 "vendored_frameworks": "KKHook/Frameworks/Dobby.framework",
30 "public_header_files": [
31 "KKHook/Frameworks/Dobby.framework/Headers/**.h",
35 "resources": "KKHook/scripts",
38 "name": "gen_hook_code",
39 "script": " #Pods目录\n podsPath=$(pwd)\n echo $podsPath\n function read_dir(){\n for file in `ls $1` #注意此处这是两个反引号,表示运行系统命令\n do\n if [ -d $1\"/\"$file ] #注意此处之间一定要加上空格,否则会报错\n then\n read_dir $1\"/\"$file\n else\n echo $1\"/\"$file #在此处处理文件即可\n py_name=\"gen_hook_code\"\n if [[ $file == *$py_name* ]]\n then\n echo \"包含\"\n py_path=$1\"/\"$file\n echo $py_path\n echo \"\n\"\n echo $SRCROOT/../../\n echo \"=============\"\n cmd=\"python3 $py_path $PODS_TARGET_SRCROOT\"\n echo $cmd\n $cmd\n else\n echo \"不包含\"\n fi\n fi\n done\n }\n #读取第一个参数\n read_dir $podsPath\n",
40 "shell_path": "/bin/sh",
41 "execution_position": "before_compile"