什么是xcrun缓存目录?

时间:2014-06-30 02:58:49

标签: xcrun

xcrun缓存存储在哪里?还有谁知道如何使用xcrun命令来清理缓存?

我认为这是选项:

-k, --kill-cache            invalidate all existing cache entries

1 个答案:

答案 0 :(得分:2)

查看控制台日志,您可以找到临时文件所在的路径:

Done checking the original app
+ /usr/bin/codesign -d --entitlements /var/folders/29/lb71hkjn46b2g7zfvcxpb4br0000gp/T/SXfVLy4n3G/entitlements_rawnyg500kb /var/folders/29/lb71hkjn46b2g7zfvcxpb4br0000gp/T/SXfVLy4n3G/Payload/Test.app
Program /usr/bin/codesign returned 0 : [Executable=/private/var/folders/29/lb71hkjn46b2g7zfvcxpb4br0000gp/T/SXfVLy4n3G/Payload/Test.app/Test
]
+ /usr/libexec/PlistBuddy -c Set :get-task-allow NO /var/folders/29/lb71hkjn46b2g7zfvcxpb4br0000gp/T/SXfVLy4n3G/entitlements_plistvl0d7HId
Program /usr/libexec/PlistBuddy returned 0 : []
+ /usr/bin/plutil -lint /var/folders/29/lb71hkjn46b2g7zfvcxpb4br0000gp/T/SXfVLy4n3G/entitlements_plistvl0d7HId
Program /usr/bin/plutil returned 0 : [/var/folders/29/lb71hkjn46b2g7zfvcxpb4br0000gp/T/SXfVLy4n3G/entitlements_plistvl0d7HId: OK
]

此次运行的缓存目录为: / private / var / folders / 29 / lb71hkjn46b2g7zfvcxpb4br0000gp / T / SXfVLy4n3G /

编写脚本后清理文件是个好主意。

rm -rf /private/var/folders/29/lb71hkjn46b2g7zfvcxpb4br0000gp/T/SXfVLy4n3G/